I need a regular expression for validation two or one numbers then , or . and again two or one numbers.
two or one
,
.
So, these
\d{1,2}[,.]\d{1,2}
\d means a digit, the {1,2} part means 1 or 2 of the previous character (\d in this case) and the [,.] part means either a comma or dot.