Regex to find or extract strings between the "<>" angle brackets

email, php, regex

Solution

Use `<(.*?)>` as regex, then.

Problem

In the following string, ``` Jason <jason@bigcreative.com> ``` how can I extract the part inside the angle brackets? I tried `<\w>` and it didn't work. Ideas? I'm using `preg_match()` in PHP if that makes a difference.

Original source