Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- class ParseTags
- {
- static void Main()
- {
- string text = Console.ReadLine();
- Console.WriteLine(Regex.Replace(text, "<upcase>(.*?)</upcase>", word => word.Groups[1].Value.ToUpper()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement