Re: [PHP] Sterilizing regexp
- From: blindspotpro@xxxxxxxxxxx ("Frank Stanovcak")
- Date: Tue, 30 Sep 2008 14:37:16 -0400
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" <per@xxxxxxxxxxxx> wrote in message
news:gbtptq$t3e$1@xxxxxxxxxxxxxxxxxxx
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
sees something wrong please hammer away, otherwise I hope it helps
save some one some time.
I think I'm missing the purpose - your code looks like you've wrapped a
function around preg_match() so you can pass arrays to it as well, but
I don't see much sanity anywhere :-)
/Per Jessen, Zürich
.
- References:
- Sterilizing regexp
- From: "Frank Stanovcak"
- Re: [PHP] Sterilizing regexp
- From: Per Jessen
- Sterilizing regexp
- Prev by Date: RE: [PHP] Sterilizing regexp
- Next by Date: Re: [PHP] Robert Cummings
- Previous by thread: Re: [PHP] Sterilizing regexp
- Next by thread: RE: [PHP] Sterilizing regexp
- Index(es):