Based on what you said, and I think it looks like what you were trying to do, I would use this regex:
^(\d{0,4})(\.\d{1,2})?$
"0-4 " " ", . , . : 5, 1234, 1234.56, .2 .31 , .123, 1234., 1234.567, 12345 . .
, , (, ., 1234. ..), :
^(\d{0,4})(\.(\d{1,2})?)?$