Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(^([0-9][1-9])$|^([1-9][0-9])$)
/

Description

This regular expression matches are two numeric digits from till 99 excluding 00. Match starts from 01 to 99.

Submitted by Bhaskar Chaganti - 8 years ago