Decimal Number Regular Expression

Category: Numbers | Views Total: 16 views

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)

Leave a Reply