in reply to Golf this reg ex
Update:# assuming $_ has the string #234567890123456 => 16 characters /\d/*/^[\d.-]+$/
It'll return true, and if it does, $1 will have the untainted text.#23456789012345678 => 18 characters /\d/*/^([\d.-]+)$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golf this reg ex
by bradcathey (Prior) on Apr 16, 2004 at 13:43 UTC | |
by halley (Prior) on Apr 16, 2004 at 14:01 UTC |