Re: regex match

From: Date: Sat, 19 Apr 2003 19:00:30 +0000
Subject: Re: regex match
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144495@lists.php.net to get a copy of this message
On 19-Apr-2003 Jason k Larson wrote: > If all you need is the serial, and it's the only 10 digit number ... > > I changed it to this and it worked for me, on Linux (redhat). > > preg_match('/([0-9]{10})/',$result,$serial); > > I didn't have a FreeBSD box to test it on, but I'm pretty sure this > would still work, due to the serial being the only 10 digit number. > The serial number is any value the admin wants to put in. The 'best practice' is yyyymmddss (ss -rev number for that day), but not every admin follows it. Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#144495) next »