Re: REGEX query
| From: | phplists | Date: | Wed, 08 Feb 2006 14:29:18 +0000 |
| Subject: | Re: REGEX query | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230087@lists.php.net to get a copy of this message | ||
Thanks for that...and yes that would do very nicely.
Unfortunately, for what I'm trying to do, it is of little use. I probably should have mentioned that the bit of text I used is actually just part of a much bigger bit of text so exploding on a space would cause havoc with the rest of it. Hence the REGEX question.
But, I still agree with you 100% about keeping things simple :o)
Thanks
Alexis
Burhan wrote:
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 :)