Module for searching for strings of token in markup
Methods
-
backward(boundary, str){Boundary}
-
Find the given string backward of the given boundary.
Name Type Description boundary
Boundary str
string -
forward(boundary, str){Boundary}
-
Find the given string forward of the given boundary.
Name Type Description boundary
Boundary str
string -
search(node, regex, direction){Boundary}
-
Collects all preceeding text node along with the given in document order.
Name Type Description node
Boundary regex
RexExp direction
string "forward" or "backward"