goog.dom.pattern.MatchType
Enumgoog.dom.pattern.MatchType
When matched to a token, a pattern may return any of the following statuses:
NO_MATCH
- The pattern does not match. This is the only
value that evaluates to false
in a boolean context.
MATCHING
- The token is part of an incomplete match.
MATCH
- The token completes a match.
BACKTRACK_MATCH
- The token does not match, but indicates
the end of a repetitive match. For instance, in regular expressions,
the pattern /a+/
would match 'aaaaaaaab'
.
Every 'a'
token would give a status of
MATCHING
while the 'b'
token would give a
status of BACKTRACK_MATCH
.
.BACKTRACK_MATCH
.MATCH
.MATCHING
.NO_MATCH