preg_match , regexp , php , ignore white spaces and new lines

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-24T14:14:47Z Indexed on 2010/05/24 14:21 UTC
Read the original article Hit count: 340

Filed under:
|

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 .

© Stack Overflow or respective owner

Related posts about php

Related posts about regex