Posted by Ewoud Dronkert on 10/22/05 16:05
NurAzije wrote:
> preg_match_all('/(<|:| |").+@.+\....(>| |")/', $data, $match);
Greedy/non-greedy problem, I guess. (Also, you should enclose the part
that you *do* want to match in brackets, or the matches won't show up as
separate entries in $match.) Try '/[a-z0-9_.+-]+@[a-z0-9.-]+/i'.
--
E. Dronkert
[Back to original message]
|