SHARE
TWEET

Untitled

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top