Decimal Number Regular Expression

Category: Numbers

A regular expression that matches all valid decimal numbers.

/^\d+\.\d+$/

Examples:

  • 0.0
  • 0.99
  • 12345.67

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.