Test, validate and match regular expressions
This regex validates decimal numbers using a comma as the decimal separator (European number format). It matches an optional negative sign followed by zero or more digits, and optionally a comma with one or more decimal digits. Commonly used in form validation for locales using comma decimals.