Page 1 of 1

Does there any option that preg_match_all ignore \n \r ?

Posted: Thu Jan 25, 2007 3:24 am
by nadavvin
Does there any option that preg_match_all ignore line breaking?

I want to get part of html and \r \n not cover by .*? to skip line breaking.

Nadav

Posted: Thu Jan 25, 2007 4:37 am
by volka
Yes, there is. And you can find the description on the page about pcre pattern modifers at http://de3.php.net/manual/en/reference. ... ifiers.php
search for PCRE_DOTALL

Posted: Thu Jan 25, 2007 4:43 am
by nadavvin
thanks

Posted: Mon Jan 29, 2007 2:37 pm
by bokehman
Or use the s modifier.