Jump to content

Preg_match_all with newlines


Tonic-_-

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/229036-preg_match_all-with-newlines/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.