Table of Contents


  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

How Anchors and Delimiters Work Together

How Anchors and Delimiters Work Together

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 Formats Overview.
For example, suppose you have specified that your document uses a tab-delimited format. A line in the example source reads
First name:<tab>Ron
is a tab character.
You can define
First name:
as a
anchor. You can define
as a
anchor. The Parser learns from these definitions that it should search a source document for the string
First name:
. 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:
First name:<tab>Jack
The Parser finds the anchors as above and retrieves the text
Now suppose that the source document reads:
First name:<tab>Jack<tab>Age:<tab>34
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
anchor that ignores tabs, even in a tab-delimited format. For more information, see How a Parser Searches for Anchors.

Updated February 12, 2020