Regex Library
Regex Library

7 patterns

Numbers Regex Patterns

Numeric validation patterns covering the full range of number formats used in forms and data processing. From simple integers to complex scientific notation.

Common Use Cases

Price input validationStatistical dataScientific computingForm fields

Frequently Asked Questions

How do I validate a decimal number?

^-?\d+(\.\d+)?$ - allows optional negative sign and optional decimal part.

How do I validate a percentage?

^(100|[0-9]{1,2})(\.[0-9]+)?%?$ - matches 0 to 100 with optional decimal and percent sign.

How do I validate that a field contains only digits?

^\d+$ - matches one or more digits, no spaces or signs.

Looking for patterns in other categories?

Browse all 209 patterns