htmlCharactersPattern top-level property

RegExp htmlCharactersPattern
final

A pattern to match HTML entity references and numeric character references.

Implementation

// https://spec.commonmark.org/0.30/#entity-and-numeric-character-references
final htmlCharactersPattern = RegExp(
  '&(?:([a-z0-9]+)|#([0-9]{1,7})|#x([a-f0-9]{1,6}));',
  caseSensitive: false,
);