hookgr
12-23-2004, 07:53 PM
hello,
i need a regex and cant find a solution...
could you please help me ???
i need this:
i have a data stream saved in a string, and would like to collect all valid email addresses in a table...
so i did that:
preg_match_all("regex_hoes_here", $reply, $matches);
$emails = array_unique($matches[1]);
the question is what i should use in the place of "regex_goes_here" so that it would find this:
(all emails are in this format)
texttexttext...text...mailto:X@X.X">...texttext...text
so i need the X@X.X
i thought it would be helpfull to scan for:
o:*@*.*">
and use o: as starting tag, and "> as ending...
and just collect what is inside these... (the *@*.*)
can u plz tell me how i could do this?
thanx for ur time !!!
i need a regex and cant find a solution...
could you please help me ???
i need this:
i have a data stream saved in a string, and would like to collect all valid email addresses in a table...
so i did that:
preg_match_all("regex_hoes_here", $reply, $matches);
$emails = array_unique($matches[1]);
the question is what i should use in the place of "regex_goes_here" so that it would find this:
(all emails are in this format)
texttexttext...text...mailto:X@X.X">...texttext...text
so i need the X@X.X
i thought it would be helpfull to scan for:
o:*@*.*">
and use o: as starting tag, and "> as ending...
and just collect what is inside these... (the *@*.*)
can u plz tell me how i could do this?
thanx for ur time !!!
