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 -

delphi - How to resolve undeclared identifier problems -

Alternative for object pools in cocos2d-x v3.3 -