Re: Regex Lookbehind help
| From: | Alex Hogan | Date: | Tue, 26 Oct 2004 19:19:55 +0000 |
| Subject: | Re: Regex Lookbehind help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200383@lists.php.net to get a copy of this message | ||
> I just tried this out and the first regex is actually working for me on php 4.3.8
> (cli). Can you post some code?
At this point all I'm trying to do is print the array with the addresses.
$file = readfile('mypathto/myfile.html');
$patrn = (\w[-._\w]*\w(?<!webmaster)@\w[-._\w]*\w\.\w{2,3});
$addresses = preg_match($patrn,$file);
print_r($addresses);
alex hogan