Re: REGEX query

From: Date: Wed, 08 Feb 2006 11:18:16 +0000
Subject: Re: REGEX query
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-230078@lists.php.net to get a copy of this message
> > 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 )'; $str = str_replace('\(EX\)','',$text); As Burhan put it, regex is not always the solution to your problem - in most cases, using regex for this kind of operations will just hog your scripts. -- Kim Christensen kim.christensen@gmail.com

« previous php.general (#230078) next »