javascript regular expression find decimal values -
i have requirement decimal values string if exists otherwise null, how can in javascript, below possibilities values want decimal value.
6pay-30d 3pay-30d 19.95-1st pay amount 3pay-30d sh3pay
this regex please have look
[0-9]*\.[0-9]*
or refined one
[0-9]+\.[0-9]+
Comments
Post a Comment