User manual - TE_SmartClient_UsersManual

NAURTECH TERMINAL EMULATION & DATA COLLECTION WEB BROWSER FOR WINDOWS CE / WINDOWS MOBILE
CETerm | CE3270 | CE5250 | CEVT220 Page 75
“UPC” for UPC-A symbology and a custom id “C128” for Code 128 symbology.
Placing a “%C” in either the pre-amble or post-amble would then add the
corresponding string based upon the symbology of the barcode decoded.
M
AGNETIC STRIPE READER
The device tailored versions of all our TE clients contain a powerful feature to select the desired
data fields from the Magnetic Card Reader and to present the data to the host. Support for MSR
is configurable only for certain device tailored versions, which have an integrated MSR. Devices
include Fujitsu iPad, Intermec 782 workpad
To select the desired data fields, a "Match" expression is specified, which can identify and "tag"
fixed or variable character locations. The tagged matches are substituted into the "Replace"
expression to send the desired data to the host application.
Match Expressions
The Match expression is a limited form of "regular expressions" as used in text processing
languages such as Perl. As such, it is very powerful, but can seem complicated. If you need
assistance configuring the Match, please contact support@naurtech.com. We will give some
examples of Match and Replace expressions to illustrate their use.
When the data is read from the card, it is available in the format
"T1:DataFromTrackOneT2:DataFromTrackTwo".
Example 1
To remove the "T1:" and "T2:" identifiers and just return the data, use:
Match: "^T1:(.*)T2:(.*)$"
Replace: "\1\2"
The "hat" '^' at the beginning of the match forces it to start at the beginning of the data
and the dollar sign ($) at the end requires a match to the end of the data.
The first set of parenthesis surround the part of the match which is substituted for "\1" in
the Replace string and similarly for the second set of parenthesis and "\2".
You may specify up to 9 sets of parenthesis to identify 9 substitutions.
The literal characters "T1:" in the match string must match the characters in the card
data.
The special ".*" means to match zero or more characters; the '.' represents any character.
Example 2
We can also specify a fixed number of characters to identify fixed field locations:
Match: "^T1:.{4}(.{20}).*T2:([0-9]{10})"