Pattern 

Overview

The Pattern property is a regular expression that each barcode found in an image is compared against. The toolkit will only return barcodes that match the pattern.

The toolkit use POSIX extended regular expression syntax.

Examples:

Note that if a Code 39 barcode uses a checksum character and the Pattern property is used to specify the entire string (ie. the last character of the pattern is $) then the Code39Checksum property must also be set to True.

Default value =     NULL

void STSetParameter(hBarcode, ST_REGEX_MATCH, char *value) ;

void STGetParameter(hBarcode, ST_REGEX_MATCH, char *value) ;

e.g

// Only scan for barcodes that contains a string similar to ABCD1234567
#include "barcode.h"
char *value = "^ABCD[0-9]+" ;
STSetParameter(hBarcode, ST_REGEX_MATCH, &value) ;