Test, validate and match regular expressions
This regex validates Brazilian Portuguese decimal numbers, commonly used for currency amounts. It accepts values with optional thousands separators (dots) and a mandatory two-digit decimal part after a comma, such as '1.234,56', or a plain integer/empty string. Ideal for form inputs requiring locale-specific monetary validation.