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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -