User's Manual Part 1
Scanner SupportChapter —6
144 700 Series Color Mobile Computer User’s Manual
Editing Expression Values
This table lists the valid operators for editing expressions.
Operator Meaning Example
\index The index-th subexpression (reading left-right)
in the matched string. index must be between
0` 9. \0 is the matched expression itself.
M([0-9]{6})= > \1 produces 270494 when
M270494 is scanned, stripping off the first
character.
&or\0 The matched expression itself. M[0-9]{6}= > \0-Conn and
M[0-9]{6}= > &-Conn
both produce
M270494-Conn
when M270494 is scanned.
\xhh A concise representation of the lower 256
characters in the Unicode set. When con-
verted, this is still a 16-bit value.
\x0d inserts a carriage return.
any character string Inserts any character string in the output
string.
See previous examples.
S <symID> is optional. If present, only data in the indicated symbology is
accepted.
S If the entire expression is blank, all data is passed unchanged. If =>
editing-expression is omitted, then all data that passes through the filter is
returned unchanged. If = > editing expression is present, the data is trans-
formed by editing-expression.
S Multiple grid expressions can be compiled and are related in a logical
OR fashion. These are expressed as single grid expressions separated by
semicolons. When matching is attempted, the first grid expression from
left to right that achieves a match will cause the data to be accepted.
S All pattern expressions and parsed data are in Unicode.
Grid Filter Example 1
This accepts a serial number in which the encoded number is a six-charac-
ter string beginning with M followed by six numeric characters.
S Filter
M[0-9]{6}
S Effect
When a bar code, such as M270494, is scanned, all data is passed.
Grid Filter Example 2
This formats a scanned Social Security number and forms it into an XML
element tagged “SSN”.
S Filter
([0-9]{3})([0-9]{2})([0-9]{4})= > <SSN > \1-\2-\3</SSN >
S Effect
A bar code, such as 123456789, is passed and reformatted to
<SSN > 123-45-6789</SSN >