Re: multi line regular expression?

From: Date: Tue, 01 Jul 2003 13:37:50 +0000
Subject: Re: multi line regular expression?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153545@lists.php.net to get a copy of this message
Tim wrote: > i have a string that contains the following: > $mystring=<<<EOS > (((TITLE))) > *color* > == > this is where the content goes > it can spreed many lines > ... > == > EOS; > > i'm using this line of code to try and get the content between == and == > > preg_match_all("|==(.+)==|",$mystring,$contents,PREG_PATTERN_ORDER); > > now, if i do a print_r($contents); the thing is empty. but if i put the content of my original > variable all on one line (== line 1 _ > line 2 _ line 3 _==), it works fine. is there something to get around this one line limit? <url:http://pl.php.net/manual/en/pcre.pattern.modifiers.php> -- Seks, seksić, seksolatki... news:pl.soc.seks.moderowana http://hyperreal.info / ALinkA / bOrk! * WiNoNa ) ( http://szatanowskie-ladacznice.0-700.pl foReVeR( * ) Poznaj jej zwiewne kształty... http://www.opera.com 007

« previous php.general (#153545) next »