Examples
Notes Anchors can be simple or complex. The following example is a simple string anchor:
JSON
includes
matches. For example, Sensible automatically expands the preceding example as:
json
Parameters
An Anchor object has the following top-level parameters:key | values | description |
---|---|---|
match (required, except for string anchors) | Match object or array of Match objects | See Match object. |
start | string, Match object, or Match object array | Start the search for the anchor’s Match parameter at a line of text in the document, and ignore all the text that precedes the start line. The terms “preceding” and “succeeding” primarily mean above and below the Start line, respectively. For more information, see Line sorting.You can extract anchor output with the Passthrough method. |
end | string, Match, or Match array | Stop the search for the anchor’s Match parameter at a line of text in the document, and ignore all the text that succeeds the End line. The terms “preceding” and “succeeding” primarily mean above and below the End line, respectively. For more information, see Line sorting.If unspecified, the anchor searches for matches to the end of the document. |
includeEnd | boolean | Whether to include the matching End line in the anchor output. |
Examples
Here’s an example of an Anchor object that uses all these parameters:JSON