tags:

views:

170

answers:

1

I'm trying to extract richard123 using php preg_replace but there are a lot of white spaces and new lines and I think because of that my regexp doesn't work . The html can be seen here : http://pastebin.com/embed_iframe.php?i=vuD3z9ij My current preg_match is :

$find = "/< tr bgcolor=\"F0F0F0\" valign=\"middle\">< td align=\"left\">< font size=\"-1\">(.*)<\/font><\/td>/";
preg_match_all($find, $res, $matches2);
print_r($matches2);

I also tried

<\/td>/s";
<\/td>/m";
<\/td>/x";
but doesn't work either .

A: 
"!<tr bgcolor=\"F0F0F0\" valign=\"middle\">\\s*<td align=\"left\"><font size=\"-1\">(.+?)</font></td>!"
serg
you're the man serg555! the pattern works like a charm !
Michael