Regular Expressions 101

Community Patterns

Case-sensitive keyword matching.

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