Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^\+?[1-9][0-9]*$
/

Description

只能输入大于0的整数

Submitted by anonymous - 5 years ago