Re: another REGEX question

From: Date: Fri, 03 Aug 2001 06:48:57 +0000
Subject: Re: another REGEX question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61088@lists.php.net to get a copy of this message
On Thursday 02 August 2001 23:39, Julian Simpson wrote: > hahah that had two interesting effects the first was that it left the < > > and the second was that it turned off all the highlighting in my > editor due to the "?>" > > any idea how to include the braces in the match and perhaps not using > the ?> string for the sake of convenience :) > >$str = preg_replace("<p.*?>", " ",$str); $str = preg_replace ('/<p.*>/iU', ' ', $str); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) "Software is like sex: the best is for free" -- Linus Torvalds

« previous php.general (#61088) next »