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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -