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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

Save and close a word document by giving a name in R -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -