Regular Expressions 101

Community Patterns

A regex to match three digit number excluding 000

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 - 7 years ago