Test, validate and match regular expressions
This regular expression matches an integer or a decimal number, ensuring the entire string consists strictly of the numerical value. It requires at least one digit before an optional fractional part, which must be separated by either a comma or a period. It is commonly used for validating user input where numbers might be formatted with different decimal separators depending on the locale.