Regex to match 2 digits, optional decimal, two digits

后端 未结 11 1372
时光取名叫无心
时光取名叫无心 2020-11-30 09:29

I\'ve spent half an hour trying to get this, maybe someone can come up with it quickly.

I need a regular expression that will match one or two digits, followed by an

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 10:06

    (?

    Matches:

    • Your examples
    • 33.

    Does not match:

    • 333.33
    • 33.333

提交回复
热议问题