Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(00[1-9]|0[1-9]\d|[1-9]\d{2})$
"
g

Description

匹配001~999之间的整数

Submitted by jgx - a year ago