OCR PROGRAMMING 13 - 35
OCR Template (continued)
1
This operator allows skipping over characters until a
specific character type or a literal string is detected. It can
be used in two ways:
P1ct
Where:
•
P1 is the Skip Until operator
•
c is the type of character that triggers the start of output
•
t is one or more template characters
P1"s"t
Where:
•
P1 is the Skip Until operator
•
"s" is one or more literal string characters (see Literal String (" and +) on page 13-32) that trigger the
start of output
•
t is one or more template characters
The trigger character or literal string is included in output from
a Skip Until operator, and the first character in
the template should accommodate this trigger.
Template Incoming data Output
P1"PN"AA9999 123PN9876 PN9876
PN1234 PN1234
X-PN3592 PN3592
Skip Until Not (P0)
P