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?
/[^.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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.