Rewrite hash substitutions

Rewrite hash substitutions, $&#x3c;...&#x3e;, $n&#x3c;...&#x3e;
  substitutes a hash of  .      substitutes a hash of  , modulo  .

See also:
 * Rewrite rule template substitutions and control sequences