$str = preg_replace("|\[details\].*?\[/details\]|si","", $str);

drop the i if you want it case sensitive.


"Richard Davey" <[EMAIL PROTECTED]> wrote in message 
> 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]

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to