Re: Regex help

From: Date: Fri, 28 Jan 2005 23:13:38 +0000
Subject: Re: Regex help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207649@lists.php.net to get a copy of this message
On 28 Jan 2005 kjohnson@zootweb.com 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. -- Tom

« previous php.general (#207649) next »