SHARE
TWEET

Untitled

a guest Jun 3rd, 2017 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void Main()
  2.     {
  3.         string text = Console.ReadLine();
  4.         Regex regex = new Regex(@"<upcase>(.*?)</upcase>");
  5.         Console.WriteLine(regex.Replace(text, UpperCase));
  6.     }
  7.  
  8.     private static string UpperCase(Match match)
  9.     {
  10.         return match.Groups[1].ToString().ToUpper();
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top