Guidelines for Header and Element Rules

Header rules and element rules share these guidelines:

  • References to groupings that do not exist result in an empty string.
  • References to element rule names alone result in a Boolean condition of whether the expression matched or not.
  • A maximum of ten matches are allowed for a regular expression. Match 0 (grouping 0) is always the match of the entire matching string; subsequent numbers are the results for other groups that match.