Maybe I didn't myself clear enough. I don't want to catch every tag A on the
HTML but all the mail addresses that are not already inside a tag A.
The expression you sugest will catch every tag A, failing to catch mail
addresses outside the scope of a tag A.
Thanks anyway.
Manu.
"Burhan Khalid"
Manuel Vázquez Acosta wrote:
Hi all:
I'm trying to find every simple mail address in an HTML that is not inside
an A tag.
I have tried this regexp:
(?)
Try this (a little more comprehensive) :
preg_match_all("|(.*?)|i",
$rawHTML, $arrayoflinks);
$links = array_unique($arrayoflinks[0]);
$href = a
Hi all:
I'm trying to find every simple mail address in an HTML that is not inside
an A tag.
I have tried this regexp:
(?)
But its not working as I expect cause the only address in my tested HTML is:
mailto:[EMAIL PROTECTED] class="link-home">My address
Any tips?
Manu.
--
PHP General Maili
3 matches
Mail list logo