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