Passthrough
Use the Passthrough method to match text using an anchor, and return the anchor match or matches directly. For example, this can be useful when you want to match using regular expressions, and you don’t want to take more extraction steps after finding the matches.
Parameters
Note: For the full list of parameters available for this method, see Global parameters for methods. The following table shows parameters most relevant to or specific to this method.
id | value | description |
---|---|---|
id (required) | passthrough | bypass the Method object, and return the output of the anchor’s Match parameter. |
Examples
The following example uses regular expressions to extract a list of forms with four-digits identifiers (for example, “Form 1099”) in a W-9 form. It defines a range to look in with start
and stop
text. Since the anchor already matches the target data, further extraction steps using a Method object are unnecessary. To ignore the Method object, set the method id to "passthrough"
.
Config
Example document
Example document | Download link |
---|
Output
Notes
Often, you use the Passthrough method in combination with regular expressions. Because anchors don’t support regex capturing groups, the Passthrough method returns the full contents of the matched line. If you want instead to use a capturing group to return part of a matched line, see the Regex method.