I want to extract email id between < >
< >
for example.
input string : "abc" <abc@gmail.com>; "pqr" <pqr@gmail.com>;
"abc" <abc@gmail.com>; "pqr" <pqr@gmail.com>;
output string : abc@gmail.com;pqr@gmail.com
abc@gmail.com;pqr@gmail.com
string input = @"""abc"" <abc@gmail.com>; ""pqr"" <pqr@gmail.com>;"; var output = String.Join(";", Regex.Matches(input, @"<(.+?)>") .Cast<Match>() .Select(m => m.Groups[1].Value));
1.4m articles
1.4m replys
5 comments
57.0k users