Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-12-28 17:36
Flavor·PCRE2 (PHP)

/
^[1-9][0-9]?$
/
gm
Open regex in editor

Description

Simple regular expression for matching 1-99.

Note that this doesn’t accept 01-09.

Submitted by anonymous