in reply to Re: Golf this reg ex
in thread Golf this reg ex
If you have the time, a simple explanation would be educational. TIAmy $number = "..2314-1234123."; if ($number =~ /\d/*/^([\d.-]+)$/ ) { print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Golf this reg ex
by halley (Prior) on Apr 16, 2004 at 14:01 UTC |