Well actually we can simplify the pattern above: ^\d*([\.\,]\d{2})?$
^\d* - pattern needs to start with any number, which can occure multiple times
([\.\,] - above pattern ends in case either a dot or comma is found
\d{2})? - pattern needs to end with 2 digits
Regards,
Dominik