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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php