40
24. Repeat the steps for the date
(adding a nice regex) and the result
should
look
like
this:
Also the markers and contents
should be highlighted on the right
panel.
Tip: Pressing right-click on the
anchors and selecting the option
“View Marking” the editor will show
you the place where the content is
found on the example document.
3.4 Parsing the grid
25. To find the grid on the document,
let’s advance the marker to the end
of the heading, defining the “Net
Value” string as marker.
26. Every line is preceded by a cr+lf
character set (new line), and ends
with another, so every 2 cr+lf
character set, there is logically a
whole grid line enclosed. We will
apply this logic to parse each line.
27. Insert a “Repeating Group” anchor,
indicating that the separator (a new
line search) is positioned before the
data, and after a second separator
the line ends.
28. The Item number is always located
at the beginning of the line, and is 5
characters wide. To parse it, create
a Content anchor indicating the
corresponding offset. You can easily
do that, selecting the characters,
from the sample document and
pressing right click on them. Finally,
select “Insert Offset Content” as
shown.