[TriLUG] regular expression

Rodent of Unusual Size Ken.Coar at Golux.Com
Thu Aug 16 13:45:52 EDT 2001


acoliver wrote:
> 
> Any one of you regular expression gurus have the answer to this
> 
> If I have this (coming line by line from stdin):
> $linein = 01072001/string.189.123123
> 
> What would the regular expression be to suck out '189'?

$val = (split(m:\.:, $linein))[1];
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"



More information about the TriLUG mailing list