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

Previous page Quantifiers  Special symbols Next page

Symbol sorting can contain some literal or literal intervals. To describe literal intervals the '-' symbol is used which is staying between the first and last symbol in an interval. Examples of different intervals of one symbol sorting are as follows: [1-5] - digits from 1 to 5, [a-f] - Latin letters from a to f, [a-fq-x] - Latin letters from a to f and from q to x, two ranges are in use in the last symbol sorting. 

If some of symbols: a or g or 7 or 4 can be in the determined positions, than the symbol sorting will be as follows: [ag47].

 It's possible to specify allowable literals in a symbol sorting. Specifying of literals can be combined with specifying intervals: [14a-kz] means that a symbol in a string can be similar with 1, 4, Latin letters from a to k and with z letter. Letters, digits, punctuation marks, mathematical signs can be a literal. For example, ',' (coma), '!' (exclamation point), '+' (plus). It's possible to use '-' (minus) symbol even if it used for interval specifying. If specify '-' between a and z, it will be interval, but if specify it after opened square bracket - it will be minus. For example, [-,a-z] means that symbol sorting contain minus, coma and Latin letters from a to z.

To specify symbol sorting containing all symbols except of the specified, e.g. all symbols except of a,b,c, use the special negation symbol: ^ (cover). It's required to specify: [^abc] - all symbols (not letters, but symbols) except of a,b,c Latin letters.

It's possible to train to write templates here.

  • No labels