I need to check input value:
- x > 0; x <= 8,00
- maximum 2 digits after comma.
My regex = 8,0|8,00|[1-8]{1}|([0-7]{1,1},[0-9]{1,2})
[1-8]{1}: when users type only 1 2 3 4 .... 8
[0-7]{1,1}: only one character from 0 to 7 before comma
[0-9]{1,2}: maximum 2 digits after comma
I type 1,23412344 and it is still valid. Could you point out my mistake in this pattern and correct for me ?