The goog.dom.pattern.MatchType Enum

goog.dom.pattern.MatchType

When matched to a token, a pattern may return any of the following statuses:

  1. NO_MATCH - The pattern does not match. This is the only value that evaluates to false in a boolean context.
  2. MATCHING - The token is part of an incomplete match.
  3. MATCH - The token completes a match.
  4. 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.
@enum
{number}

.BACKTRACK_MATCH

.MATCH

.MATCHING

.NO_MATCH