in reply to Re: In-place regex substitution
in thread In-place regex substitution
> s/(\d\d\.\d*)/
this will exclude numbers smaller than ten (already so in marto's post)
Supposing all numbers have a decimal point, I'd say s/(\d+\.\d*)/
It's really hard to guess which formats are possible and where they'll appear.
In the end the safest way is use a JSON parser.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|