Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. (%|&&)|($)
  2.  
  3. (%|&&)
  4.  
  5. using System;
  6. using System.Text.RegularExpressions;
  7.  
  8. public class Example
  9. {
  10. public static void Main()
  11. {
  12. string pattern = @"(%|&&)|($)";
  13. string substitution = @";";
  14. string input = @"1@gmail.com%2@gmail.com
  15. 1@gmail.com&&2@gmail.com";
  16. RegexOptions options = RegexOptions.Multiline;
  17.  
  18. Regex regex = new Regex(pattern, options);
  19. string result = regex.Replace(input, substitution);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement