I'm trying to get a regex for just numbers from 0,1 to 100 with max. 2 digits after the comma.
valid examples:
1
8,55
99,5
invalid examples:
0
100,5
88,25222
The regex /^(((0(\,\d{1,2}))|(([1-9]|([1-9][0-9]))(\,\d{1,2})?))|(100(\,0{1,2})?))$/ will:
Accept 0,1, 1, 8,55, 99,5
Reject 0, 100,5, 88,25222