2021.2

Table Of Contents
findRegExp()
Finds the first occurrence of a string that matches the given regular expression pattern, starting
from the current position.
findRegExp(regexpToFind, flags, leftConstraint, rightConstraint): rectValueText)
Finds the first match for a given regular expression pattern starting from the current position.
Regular expression flags (i,s,L,m,u,U,d) are specified in the flags parameter. The search can
be constrained to a vertical column of characters located between the left and right constraint,
each expressed in characters (in a text file) or millimeters (in a PDF file).
Partial matches are not allowed. The entire match for the regular expression pattern must be
found between the two constraints.
The method returns null if the regular expression produces no match. Otherwise it returns a
RectValueText object, containing the Left, Top, Right and Bottom coordinates - expressed in
characters (in a text file) or millimeters (in a PDF file), relative to the upper left corner of the
current page - of the smallest possible rectangle that completely encloses the first match for the
regular expression.
Note
Calling this method does not move the current position to the location where the match
occurred. This allows you to use the method as a look-ahead function without disrupting
the rest of the data mapping workflow.
Note
This function evaluates the regular expression pattern for each individual line. Multiline
regular expression patterns, i.e., patterns with tokens such as line end tokens (\n) are not
supported.
regexpToFind
Regular expression pattern to find.
flags
Page 417