Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
([^A-Za-z]|\b)+DR([^A-Za-z]|\b)+
/
g

Description

Case-sensitive matching of a keyword, where the keyword is not a substring of other words.

Submitted by Norskov - 9 years ago