Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement