Re: REGEX query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux