Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

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

Description

Find a number with a value in the range of 2 through 999.

Submitted by byronjones@outlook.com - 8 years ago