Build, test, and debug regular expressions
This regex validates positive decimal numbers by strictly disallowing insignificant leading and trailing zeros. It matches standard whole numbers like "0" or "123", and decimals like "0.5" or "1.02", but fails on inputs like "012" or "1.20". It is perfect for sanitizing numeric inputs where strict formatting is required.