Link to home
Start Free TrialLog in
Avatar of Brant Snow
Brant Snow

asked on

Regular Expressions Question RegEx

I have a Regular Expression of

/[^.0-9]+/g

to allow only number characters including decimals

However I need to prevent negative numbers and also need to allow only up to 4 points precision for the decimal.

I am not great at regular expressions, how would I change this?
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial