Tonic-_- Posted February 27, 2011 Share Posted February 27, 2011 This is rather bothering as I know if you use the delimiter / regex pattern s it should ignore newlines preg_match_all("%<p><b>(.*?)</b>%s", $html, $data); Returns a blank array the page data is like so <p> <b>41,910</b><br/> Total Points </p> Never had a problem before that i can recall but for some reason with this page it's giving me issues. Maybe i'm missing something? Quote Link to comment Share on other sites More sharing options...
silkfire Posted February 27, 2011 Share Posted February 27, 2011 That won't work in any case replace your code with this: preg_match_all('%<p>\s*<b>(.*?)</b>%', $html, $data); Quote Link to comment Share on other sites More sharing options...
Tonic-_- Posted February 27, 2011 Author Share Posted February 27, 2011 Arg, I knew I was missing something, Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.