DIV, SPAN
the matcher will not match
DIV, DIV, SPAN
because it starts matching at the first
DIV
, fails to match SPAN
at the second, and never
backtracks to try again.
It is also possible to have a set of complex patterns that when matched in
parallel will miss some possible matches. Running multiple times will catch
all matches eventually.
![]()
When matched to a token, a pattern may return any of the following statuses:
Constants:
|
Code » |
Utility function to match a string against either a string or a regular
expression.
|
code » | |
Utility function to match a DOM attribute against either a string or a
regular expression. Conforms to the interface spec for
goog.object#every .
|
code » |