My regex is:
$regex = '/(?<=Α: )(([\w-\.]+)@((?:[\w]+\.)+)([a-zA-Z]{2,4}))/';
My content among others is:
Q: Email Address
A: [email protected]
Rad Software Regular Expression Designer says that it should work.
Various online sites return the correct results.
If I remove the (?<=Α: ) lookbehind the regex returns all emails correctly.
When I run it from php it returns no matches.
What's going on?
I've also used the specific type of regex (ie (?<=Email: ) with different content. It works just fine in that case.