Re: [PHP] Sterilizing regexp



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

.


Quantcast