Regular Expressions 101

Community Patterns

Community Library Entry

-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