Re: Regex help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux