I've got a piece of text that contains another regular expression.
Sample text:
...<rege>!^.*$!mailto:[email protected]!</rege>...
What I want to match is:
mailto:[email protected]
This didn't work:
$patterns[] = '/<rege>!\^\.\*\$!(.*)!<\/rege>/';
Thoughts?