You can define the anchors in the example source document. The Parser learns how to parse the document by examining the anchors and the delimiters that separate them. For more information about delimiters, see
For example, suppose you have specified that your document uses a tab-delimited format. A line in the example source reads
is a tab character.
You can define
anchor. You can define
anchor. The Parser learns from these definitions that it should search a source document for the string
. It should then skip over a single tab delimiter and retrieve the text that follows the tab.
Suppose you run the Parser on another source document, which contains the following text:
The Parser finds the anchors as above and retrieves the text
Now suppose that the source document reads:
The Parser still retrieves the text
, rather than
. This works because you have defined the tab character as a delimiter. The Script understands that the
anchor starts after the first tab and ends before the second tab. Of course, you might define additional anchors that retrieve Jack's age, which is
The above examples describe one possible behavior of the anchors and delimiters. The anchors have many properties that let you alter this behavior. For instance, you can define a