开发者

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

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\"&开发者_JS百科gt;< 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 .


"!<tr bgcolor=\"F0F0F0\" valign=\"middle\">\\s*<td align=\"left\"><font size=\"-1\">(.+?)</font></td>!"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜