Re: [PHP] Sterilizing regexp

2008-10-01 Thread Eric Butera
On Wed, Oct 1, 2008 at 2:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Frank Stanovcak wrote: > >> I've got to pass about 9 or 10 calls to it, some of which will be >> arrays, and I have to do it from several different places. Felt this >> was a bit more elegant than hard coding the pregmatches u

Re: [PHP] Sterilizing regexp

2008-10-01 Thread tedd
At 8:53 AM +0200 10/1/08, Per Jessen wrote: Code elegance is usually in the eye of the beholder, but personally I would have stuck to a set of hardcoded preg_matches(). /Per Jessen, Zürich I agree, however with this caveat: Code elegance is in the eye of the beholder. It is usually painful a

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Per Jessen
Frank Stanovcak wrote: > I've got to pass about 9 or 10 calls to it, some of which will be > arrays, and I have to do it from several different places. Felt this > was a bit more elegant than hard coding the pregmatches unless there > is an easier way. Code elegance is usually in the eye of the

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Jim Lucas
Frank Stanovcak wrote: > A while ago I asked a question and got a few answers, so I thought I would > toss this out there as a follow up. I'm going to be using this to return > filtered regexp values for a user interface. > > I haven't had a chance to enter this into my code yet, so if anyone s

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Frank Stanovcak
I've got to pass about 9 or 10 calls to it, some of which will be arrays, and I have to do it from several different places. Felt this was a bit more elegant than hard coding the pregmatches unless there is an easier way. "Per Jessen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

RE: [PHP] Sterilizing regexp

2008-09-30 Thread Boyd, Todd M.
> -Original Message- > From: Frank Stanovcak [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2008 12:45 PM > To: php-general@lists.php.net > Subject: [PHP] Sterilizing regexp > > A while ago I asked a question and got a few answers, so I thought I > would > toss this out there as

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Per Jessen
Frank Stanovcak wrote: > A while ago I asked a question and got a few answers, so I thought I > would toss this out there as a follow up. I'm going to be using this > to return filtered regexp values for a user interface. > > I haven't had a chance to enter this into my code yet, so if anyone >