Reputation: 2855
I have the following regex
^\d+(\,\.\d+)?$
I am trying to match the following
my expression does not work and I am looking for suggestions. Thank you!
Upvotes: 0
Views: 897
Reputation: 109547
^\d+([,.]\d+)?$
You had a sequence of comma and period, not a group.
Upvotes: 1