Re: regular expressions ?

From: Date: Fri, 28 Jan 2005 15:37:46 +0000
Subject: Re: regular expressions ?
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-207602@lists.php.net to get a copy of this message
On Thu, 27 Jan 2005 11:36:39 -0800, Rick Fletcher <fletch@pobox.com> 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

« previous php.general (#207602) next »