Regular Expressions 101

Community Patterns

Expression that does not include a subexpression

-2

Regular Expression
PCRE (PHP <7.3)

/
^((?!-([ABC])(\d{3})).)*$
/
gm

Description

Pattern that matches all expression that not include a subexpression. The subexpression could be replaced by a string.

Submitted by aquintas - 9 years ago