Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(\[case #(?>[0-9a-f]){7}\] )
/
gm

Description

CiviCRM prepends a hash to email subjects. This regex will capture the case hash and formatting and possibly useful for removing this text.

Submitted by dtwx - 3 years ago