Regular Expressions 101

Community Patterns

Publication date filter

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\|[pP]ublication\s*[Dd]ate=\s*[^\|}\n]+\s*[\|}]
/
gm

Description

Check that the template call has the parameter 'Publication Date' filled in

Submitted by anonymous - 3 years ago