Test, validate and match regular expressions
This regular expression matches integers as well as decimal numbers containing up to five decimal places. It is commonly used to validate numerical inputs such as currency, weights, or precise measurements where fractional precision is limited. The global and multiline flags allow it to validate each line independently within a block of text.