4-34
A-61635 December 2010
[2, -2]
Description
— get sub-string from the 2
nd
character to the 2
nd
from the last
character of the original value.
“ABCDEFGHIJ”
Î
“BCDEFGHI”
“1234567890”
Î
“23456789”
“AB”
Î
“BA”
“A”
Î
“A”
[index, ‘delimiter’]
— used to extract the element at the position specified by
index where each element in the index data is separated by the character
delimiter. The first element is index 1.
NOTE: This transform expression is especially useful when assigning data
elements in a PDF417 bar code to different index fields. It is also
useful when assigning different lines of multi-line OCR results to
different index fields. The delimited produced by multi-line OCR is the
carat (^) character.
Examples
[2, ‘^’]
Description
— get the 2
nd
element in the multi-line OCR where elements are
separated by the character ‘^’
“John Smith^123 Main Street^Some City”
Î
“123 Main Street”
[3, ‘*’]
Description
— get the 3
rd
element from the PDF417 barcode where elements
are separated by the character ‘*’
“John Smith*123 Main Street*Some City”
Î
“Some City”
[start; len]
– used to extract a sub-string for the position start for len
characters.
Examples
[2;3]
Description
— get sub-string from 2
nd
character with a length of 3 characters.
“ABCDEFGHIJ”
Î
“BCD”
“1234567890”
Î
“234”
“AB”
Î
“B”
“A”
Î
“”