Re: Unexplained Issue Using Regex

From: Date: Fri, 06 Mar 2009 21:54:20 +0000
Subject: Re: Unexplained Issue Using Regex
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-289498@lists.php.net to get a copy of this message
On Fri, Mar 6, 2009 at 3:53 PM, haliphax <haliphax@gmail.com> wrote: > On Fri, Mar 6, 2009 at 3:44 PM, Nitsan Bin-Nun <nitsan@binnun.co.il> wrote: >> I'm not looking for other ideas, the main thing here is that I have about >> 30-100 regex's in the database and the script fetches them and applies them >> to the string. I can't build again the engine and I'm not going to do that. >> I'm trying to solve my problem ;) If you have any ideas regarding my issue >> and not going in another way this would be very appreciated. > > Nitsan, > > I think it's because you're referencing the capture group with index > instead of index 2. Also, I don't understand why you have the pipe > ("|") character in your regex string... is that part of your engine? *cough*... I meant to say "index 3 instead of index 2".

« previous php.general (#289498) next »