RE: [PHP] regex match

From: Date: Sat, 19 Apr 2003 17:03:18 +0000
Subject: RE: [PHP] regex match
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144488@lists.php.net to get a copy of this message
On 19-Apr-2003 Chris Knipe wrote: <snip> > > Now, on RH, the function will work, seeing that RH's host -t returns the > SOA > in one line... FreeBSD however doesn't... Any good regex's around for > this? > I only need the serial number... Just the numbers. $str=host -t soa abc.com | grep ';' | cut -d\; -f1; 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 (#144488) next »