Re: Sterilizing regexp
| From: | Frank Stanovcak | Date: | Tue, 30 Sep 2008 18:37:16 +0000 |
| Subject: | Re: Sterilizing regexp | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281225@lists.php.net to get a copy of this message | ||
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@computer.org> wrote in message
news:gbtptq$t3e$1@saturn.local.net...
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