I have this Regex @"/([^<]+)\s<(.*)>/"
to match the name and email address from this string in C#:
John Doe <john.doe@gmail.com>
If I use Regex.Match("John Doe <john.doe@gmail.com>", @"/([^<]+)\s<(.*)>/")
what is the property of the result that returns both the name and email address in a collection? I looked at Groups and Captures but neither returns the correct result.
Thanks.