Skip to main content
An anchor is a string, Match object, or array of Match objects. An anchor is a computationally quick way to narrow down the location of the data you want to extract in a document. After locating the anchor, Sensible uses a “method” to expand out from the anchor and extract the data you want. Parameters
Examples
Notes
Anchors can be simple or complex. The following example is a simple string anchor:
JSON
Behind the scenes, Sensible expands string anchors to case-insensitive includes matches. For example, Sensible automatically expands the preceding example as:
json

Parameters

An Anchor object has the following top-level parameters:

Examples

Here’s an example of an Anchor object that uses all these parameters:
JSON

Notes

For information about complex anchor syntax, see Anchor nuances.