Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- class Program
- {
- static void Main()
- {
- string s = Console.ReadLine();
- string result = Regex.Replace(s, @"\<upcase\>(.*?)\</upcase\>",
- m => {var replaced = m.Groups[1].Value; return replaced.ToUpper();});
- Console.WriteLine(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment