Re: Regex help
| From: | kjohnson at zootweb dot com | Date: | Fri, 28 Jan 2005 23:23:32 +0000 |
| Subject: | Re: Regex help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207651@lists.php.net to get a copy of this message | ||
trlists@clayst.com wrote on 01/28/2005 04:13:38 PM:
> 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.
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