Regular Expressions 101

Publication date filter

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
\|[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