Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Source: Hi [name] how are you [other]?
  2. Result: Hi [NAME] how are you [OTHER]?
  3.  
  4. public static string VariablesToUpperCase(this string input)
  5. {
  6. string pattern = @"[w+]";
  7. string replacement = "??????";
  8. Regex rgx = new Regex(pattern);
  9. return rgx.Replace(input, replacement);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement