OCR Tool Match String

OCR Tool Match String allows you to specify the string that must be matched for the OCR Tool to pass. OCR Match String allows you to enter a ‘?’ character as a wildcard character.

 

With IntelliText OCR, you can also create a variable match string using regular expressions.

 

When String Matching Method is set to Basic, basic string matching will be performed on the result string.

 

When it is set to Regular Expression (TRE), the result string will be tested against the user-defined regular expression in the match string field.

 

 

Regular expression syntax can be found here:

 

http://laurikari.net/tre/documentation/regex-syntax/

 

Regular Expression Examples

Example expiration date string matching “EXP (JUN|FEB) [0-9]{2} [0-9]{4}”:

 

"EXP JUN 12 1998" - match

 

"EXP JUN 30 1999" - match

 

"EXP FEB 12 1998" - match

 

"EXP JVN 12 1998" - fail

 

"EXP JUN 12 98" - fail

 

"EXP JUN 12 199B" - fail

 

"LXP JUN 12 1998" - fail

 

 

Example date string matching “(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[012])/11”: