Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-03-01 11:23
Flavor·Python

r"
^(?!(^0\d).)^\d*\.?\d+$
"
gm
Open regex in editor

Description

matches:

  • 1234
  • .0123
  • 0.123

no matches:

  • 01234
  • 01.234
Submitted by anonymous