J
John
I would like to know which regular expression will match a number with
decimals between 0 and 1.
I have tried and fail with:
/\d/ #match any number
\/[0-1]?\.?[0-9]*/ # match any number
/[0-1]||(0\.[0-9]+)/ # match also 0.24.0220
note the number can be expressed as 0.28, 0.03455, .0123432 but never
with [+-] symbols.
Any help
Cheers
J
decimals between 0 and 1.
I have tried and fail with:
/\d/ #match any number
\/[0-1]?\.?[0-9]*/ # match any number
/[0-1]||(0\.[0-9]+)/ # match also 0.24.0220
note the number can be expressed as 0.28, 0.03455, .0123432 but never
with [+-] symbols.
Any help
Cheers
J