> Check the documentation for preg_match()...it can't be used that way. It returns
> false or the number of matches, but not the matching text itself. To get the
> matches you have to supply the third parameter (matches). Plus you'll probably
> want to use preg_match_all() unless you only want
Alex Hogan wrote:
>> 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
> 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(?http:/
Alex Hogan wrote:
> Hi All,
>
> I am trying to identify an email address in a page but I don't want to
> return the email if it's [EMAIL PROTECTED]
>
> Here's what I have;
> (\w[-._\w]*\w(?
> It returns nothing, however when I take out the lookbehind section;
> ([EMAIL PROTECTED],3})
> it works fin
4 matches
Mail list logo