Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main()
- {
- string text = Console.ReadLine();
- Regex regex = new Regex(@"<upcase>(.*?)</upcase>");
- Console.WriteLine(regex.Replace(text, UpperCase));
- }
- private static string UpperCase(Match match)
- {
- return match.Groups[1].ToString().ToUpper();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement