Sensible

The Sensible Developer Hub

Welcome to the Sensible developer hub. You'll find comprehensive guides and documentation to help you start working with Sensible as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Passthrough

Use the Passthrough method to grab a line or lines of text using an anchor, and return the match or matches directly. This can be useful when you want to match using regular expressions, and you don’t want to take any additional steps after finding your matches.

Examples

The following example config uses regular expressions to grab a list of forms that are all identified by four digits (i.e., "Form 1099") in a W-9 form. It defines a range to look in with start and stop text. Since the data we were looking for is already matched by the anchor, we don't need a Method object. To ignore the Method object, we set the method id to "passthrough".

{
  "fields": [
    {
      "id": "forms_with_4_numbers",
      "match": "all",
      "anchor": {
        "start": {
          "type": "startsWith",
          "text": "General Instructions",
          "isCaseSensitive": true
        },
        "match": {
          "type": "regex",
          "pattern": "Form [0-9]{4}"
        },
        "end": "Rev. 10-2018"
      },
      "method": {
        "id": "passthrough"
      }
    }
  ]
}

The following image shows this example in the Sensible app:

Parameters

Note: For the full list of parameters available for this method, see Global parameters for methods. The following table only shows parameters most relevant to or specific to this method.

idvaluedescription
id (required)passthroughbypass the Method object, and return an anchor.

Notes

Often, you use the Passthrough method in conjunction with an anchor that matches using regular expressions. Because anchor matches do not 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 only part of a matching line, see the Regex method.

Updated 24 days ago


Passthrough


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.