try $str = preg_replace("|\[details\].*?\[/details\]|si","", $str);
drop the i if you want it case sensitive. Paul "Richard Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php