Thanks indeed! This pattern worked just perfect. Nasko
"1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message 00e601c2c2e0$0c204720$a629089b@TBHHCCDR">news:00e601c2c2e0$0c204720$a629089b@TBHHCCDR... > If the separators are always the same length, then you can use the > following: > > $new_str = preg_replace("/(=-){5}(.*)-{10}/sU","",$str); > > Where 5 is how many times the =- pattern repeats, and 10 is how many times > the - character repeats. > > Hope that helps. > > ---John Holmes... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php