trlists@xxxxxxxxxx wrote on 01/28/2005 04:13:38 PM: > On 28 Jan 2005 kjohnson@xxxxxxxxxxx wrote: > > > Thanks, Tom. I agree, but not an option at this time - other parts of the > > design require this to be a regex. > > It is pretty easy to do with two regexps, one to check the length and > another to see if there is a double &. Would that work? I don't know > off hand how to do it with a single regexp. > > If the design requires that every possible condition be checked with a > single regexp then I would say, no offense intended, that the design is > faulty. Regexps are good tools but are not universal for all possible > conditions one might want to test. Thanks Tom and Richard. No offense taken. The design isn't mine, I am "plugging in" to another system that expects a regex. I think I may have to push back on this one :) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php