Skip to main content
1 of 3
James Coyle
  • 10.5k
  • 2
  • 42
  • 49

How about \d([:.]\d?)?? That should handle all the cases you mentioned.

Or \d+([:.]\d+?)? if you want to accept more than one digit in each number.

James Coyle
  • 10.5k
  • 2
  • 42
  • 49