I have a text input field and I want to check what users put in there. I want to allow them to put a monetary amount with or with out $. They should be able to enter:
$12
$12.0
12
12.0
$ 12.0
not sure how would I do that. I think regex may help, but I’m not sure how to do that.
Basic regular expression.
This will fail
12.and.0since they were not in your possible solutions