I need a regular expression for validation two or one numbers then , or . and again two or one numbers.
two or one
,
.
So, these are valid inputs:
11,11 11.11 1.1 1,1
d{1,2}[,.]{1}d{1,2}
EDIT: update to meet the new requirements (comments) ;) EDIT: remove unnecesary qtfier as per Bryan
^[0-9]{1,2}([,.][0-9]{1,2})?$
1.4m articles
1.4m replys
5 comments
57.0k users