Re: REGEX query

From: Date: Wed, 08 Feb 2006 10:03:45 +0000
Subject: Re: REGEX query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230077@lists.php.net to get a copy of this message
phplists wrote:
Hi, I'm still trying to get to grips with REGEX and have hit a hurdle with the following: I have this bit of text: (\(EX\) RV-6 ) I want to remove the '\(EX\)' part of it so leaving just: ( RV-6 )
$text = '(\(EX\) RV-6 )'; $bits = explode(' ',$text); $leaving = '( '.$bits[0].' )'; Sometimes, regex is not the answer :)

« previous php.general (#230077) next »