Documentation for POS Intellect 5.4. Documentation for other versions of Intellect is available too.

Previous page Regular expressions  Quantifiers Next page

To analyze POS operations it's required to review data flow received from pos terminal and select the required data. Regular expressions are used for this purpose.

Regular expressions - template languages.

Template is processed symbol-by-symbol. For example, to find a "d" letter in the "stadium" word, it's required to analyze all letters of the "stadium" word and estimate them with required letter.

Template – is a unique indicator what to search in the string. It's possible to search digits, letters, invisible symbols (space, tabbing, etc.).

To search the "d" or "m" letter in the "stadium" word unless the first coincidence, use the method of sorting: analyze each letter and compare it with the required symbol. i.e. with "d" and "m". Such set of search conditions is called a symbol sorting and it's writing as follows: [dm] - it says that d or m letters are searching for.

To specify that any letter is searching for, it's required to list them all [abc...xys] or specify the interval [a-z].

To get the symbol sorting with all Latin letters specify the [a-zA-Z] in a template.

This symbol sorting describes only one symbol. To describe all symbols in the string use quantifiers.

  • No labels