Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?!000)[0-9]{3}
/
g

Description

A regex to match three digit number excluding 000

Submitted by anonymous - 8 years ago