> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Alphabet used in regular expressions

> Alphabet used in ABBYY FlexiCapture regular expressions: symbols for letters, numbers, groups, and repetitions, with examples like zip codes.

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Conventional designation</strong></p></td><td><p><strong>Usage example</strong></p></td></tr><tr><td><p>Any character</p></td><td><p>\*</p></td><td><p>"c"\*"t" – allows such words as cat, cot, etc.</p></td></tr><tr><td><p>Letter</p></td><td><p>C</p></td><td><p>C"ot" – allows such words as Rot, pot, cot, Dot, mot, etc.</p></td></tr><tr><td><p>Uppercase letter</p></td><td><p>A</p></td><td><p>A"ot" – allows such words as Rot, Cot, Mot, Dot, etc.</p></td></tr><tr><td><p>Lowercase letter</p></td><td><p>a</p></td><td><p>a"ot" – allows such words as rot, cot, mot, dot, etc.</p></td></tr><tr><td><p>Letter or number</p></td><td><p>X</p></td><td><p>X – allows any standalone number or letter.</p></td></tr><tr><td><p>Number</p></td><td><p>N</p></td><td><p>N"th" allows such words as 5th, 4th, 6th, etc.</p></td></tr><tr><td><p>String</p></td><td><p>" "</p></td><td><p>"cot"</p></td></tr><tr><td><p>Or</p></td><td><p>|</p></td><td><p>"pl"("o"|"a")"t" – allows words "plot" and "plat".</p></td></tr><tr><td><p>Character from group</p></td><td><p>\[]</p></td><td><p>\[tm]"ot" – allows words "tot" and "mot".</p></td></tr><tr><td><p>Character not from group</p></td><td><p>\[^]</p></td><td><p>\[^t]"ot" – allows words "cot", "lot", etc., but does not allow the word "tot".</p></td></tr><tr><td><p>Space (within group)</p></td><td><p>\s</p></td><td><p>\[A\s] allows only the letter A or a space.</p></td></tr><tr><td><p>Any number of repetitions</p><p>(applies to the expression or subexpression on the left)</p></td><td><p>\{-}</p></td><td><p>\[AB74]\{-} – allows any combinations of characters A, B, 7, 4 of any length.</p></td></tr><tr><td><p>Number of repetitions n</p></td><td><p>\{n}</p></td><td><p>N\{2}"th" allows such words as 25th, 84th, 11th, etc.</p></td></tr><tr><td><p>From n to m repetitions</p></td><td><p>\{n-m}</p></td><td><p>N\{1-3}"th" allows such words as 5th, 84th, 111th, etc.</p></td></tr><tr><td><p>From 0 to n repetitions</p></td><td><p>\{-n}</p></td><td><p>N\{-2}"th" allows such words as 84th, 5th, etc.</p></td></tr><tr><td><p>From n repetitions and more</p></td><td><p>\{n-}</p></td><td><p>N\{2-}"th" allows such words as 25th, 834th, 311th, 34576th, etc.</p></td></tr><tr><td><p>Subexpression</p></td><td><p>()</p></td><td> </td></tr><tr><td><p>Hyphen symbol</p></td><td><p>\[\\-]</p></td><td> </td></tr><tr><td><p>Slash symbol</p></td><td><p>\[\\\\]</p></td><td> </td></tr></tbody></table>

*Examples of regular expressions:*

1. Postal code: \[0-9]\{6}\
   An sample value: "142172"
2. Zip code (USA): \[0-9]\{5}("-"\[0-9]\{4})\{-1}\
   Sample values: "55416", "33701-4313"
3. Income: N\{4-8}\[,]N\{2}\
   Sample values: "15000,00", "4499,00"
4. Month in the numerical form: ((|"0")\[1-9])|("10")|("11")|("12")\
   Sample values: "4", "05", "12"
5. Fraction: ("-"|)(\[0-9]\{1-})(|(("."|",")(\[0-9]\{1-})))\
   Sample values: "1234,567", "0.99", "100,0", "-345.6788903"
6. E-mail: \[A-Za-z0-9\_]\{1-}(("."|"-")\[A-Za-z0-9\_]\{1-})\{-3}"@"\[A-Za-z0-9\_]\{1-}(("."|"-")\[A-Za-z0-9\_]\{1-})\{-4}"."(\[A-Za-z]\{2-4}|"asia"|"museum"|"travel"|"example"|"localhost"\
   Sample values: "[support@abbyy.com](mailto:support@abbyy.com)", "[my-name@company.org.ru](mailto:my-name@company.org.ru)", "[info@gallery.museum](mailto:info@gallery.museum)"
