48 CT30 XP Mobile Computer Series User Guide
Add Custom Regex
In addition to the regex that are embedded in the app, you can create custom
expressions to refine scanning results and improve accuracy. Smart OCR uses
standard regex expressions and formatting (i.e., ^, ., $, { }, etc.).
To add a regex:
1. With the Result Regex tab selected, tap the plus sign.
2. In the Regex field, enter the expression.
To make entering an expression easier, the app provides Regex Easy Select
options with commonly used formats. Select the Numbers, Letters, or Date tab
then tap the item you want to use. The code is added to the Regex line. You can
use this code as it appears or modify it based on your need.
The app verifies that the regex is valid. If it is not, an error message is displayed.
An invalid expression cannot be saved.
3. Enter a Name for the expression. The Name cannot be used by another
expression.
4. On the Test line, enter characters that you would expect to match the Regex.
The app checks if the regex matches the string. Matching characters are shown
in green, and the word “Matched” is displayed if the string matches the regex.
In this example, the Regex looks for six consecutive numbers. The letters and
extra numbers will be filtered out of the result. The Test field shows what
matches the Regex.
Pure Letters ^[A-Za-z]+$ fhghlflAsklZRshgWQRQ
Number and Letters ^[A-Za-z0-9]+$ Fhgh789lflA456sklZRshgW97QRQ
Postcode [1-9]d{5}(?!d) 215000
IP Address d+.d+.d+.d+ 192.168.1.1
456.4547.454.1548
Embedded Regex
Name Regex Pattern Example