Re: regular expressions ?

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

 



On Thu, 27 Jan 2005 11:36:39 -0800, Rick Fletcher <fletch@xxxxxxxxx> wrote:
>
> /^(1?[1-9]|[12]0)$/ works too.  The first part covers 1-9, 11-19; the
> second part gets you 10 and 20.
> 
> Plus, it's ever so slightly shorter!  And isnt' that what's most
> important? :P

absolutely, and you managed it without a typo, unlike me :(

  -robin

-- 
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