Regular Expressions 101

Community Patterns

1...34567...232

Match a CiviCRM Case Hash

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