Re: preg_replace pains

From: Date: Fri, 28 Jun 2002 06:09:13 +0000
Subject: Re: preg_replace pains
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104261@lists.php.net to get a copy of this message
try $str = preg_replace("|\[details\].*?\[/details\]|si","", $str); drop the i if you want it case sensitive. Paul "Richard Davey" <rich@fatal-design.com> wrote in message news:20020628013658.36262.qmail@pb1.pair.com... > Hi all, > > I've been having a wonderful night trying to solve this one, but I'm going > to throw in the towel and see if anyone else can shed some light on it. The > scenerio is quite simple, I'm parsing some form input from a user and > looking for the following: > > [details].......[/details]

« previous php.general (#104261) next »