Regular Expressions 101

Community Patterns

Regex to match 1000, >1000, >=1000, =1000, <=1000, ~1000

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(>|=|<|~|>=|=<)?(1000)$
/
gm

Description

Regex to match special characters followed by a specific number(1000)

Submitted by Mehul Thakkar - 3 years ago