_REGEX
- protected static final {String}
Regular expression template for highlighting a match that occurs anywhere
in a string. The placeholder %needles
will be replaced with
a list of needles to match, joined by |
characters.
This regex should have two capturing subpatterns: the first should match
an unclosed HTML entity (e.g. "&" without a ";" at the end) 0 or 1
times; the second should contain the %needles
placeholder.
The first subpattern match is used to emulate a negative lookbehind
assertion, in order to prevent highlighting inside HTML entities.
_REPLACER
- protected static final {Function|String}
_START_REGEX
- protected static final {String}
Regular expression template for highlighting start-of-string matches
(i.e., only matches that occur at the beginning of a string). The
placeholder %needles
will be replaced with a list of needles
to match, joined by |
characters.
See _REGEX
for a description of the capturing subpatterns
this regex should contain.
_TEMPLATE
- protected static final {String}
{s}
will be replaced with the
matched substring.