regex - JavaScript: Extract parts of e-mail address and split into parts -
How to remove some parts of the e-mail address and split into parts and if there is a point in the first and last names Like many companies are common?
Input 1
perry.rhodan@galaxy.net
Input 2
atlan @ Galaxy.net
desired output 1
Peri roadan galaxy net
desired output alan galaxy net
I checked my answer below for a reg box and a dot in the email but maybe a regex to get the same result?
What is C #:
Use Regex regex = new Regex (@) "@ (+.) (= \ \ W {2,}?.) (+.)"; String texts = "perry.rodan@galaxy.net \ natlan@galaxy.net"; Var list = new list & lt; String & gt; (); Where (v => List.Any (l => = l). (). = V))); List.adrenz (item group [2] .whole sample ('.'). (V = & gt; list. Any (l = & gt; l == v))); } Foreach (different items in the list) {Console.WriteLine (item); }
Comments
Post a Comment