Build, test, and debug regular expressions
This regex matches numeric strings representing currency amounts. It allows an optional integer part (zero or more digits) followed by an optional decimal point with exactly one or two decimal digits. It is commonly used to validate monetary input in forms, ensuring values like '0', '10', '12.5', or '99.99' are accepted while rejecting invalid formats such as '1.234' or '.'.