1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[v11]= Alternative regular expression module (3.11)
8 SDESC[v12]= Alternative regular expression module (3.12)
9 HOMEPAGE= https://github.com/mrabarnett/mrab-regex
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/r/regex
14 DISTFILE[1]= regex-2023.12.25.tar.gz:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= regex-2023.12.25
28 [PY311].USES_ON= python:v11,sutools
30 [PY312].USES_ON= python:v12,sutools
32 [FILE:3137:descriptions/desc.single]
36 This regex implementation is backwards-compatible with the standard 're'
37 module, but offers additional functionality.
42 The re module's behaviour with zero-width matches changed in Python 3.7,
43 and this module follows that behaviour when compiled for Python 3.7.
48 Python 2 is no longer supported. The last release that supported Python 2
54 This module is targeted at CPython. It expects that all codepoints are the
55 same width, so it won't behave properly with PyPy outside U+0000..U+007F
56 because PyPy stores strings as UTF-8.
61 The regex module releases the GIL during matching on instances of the
62 built-in (immutable) string classes, enabling other Python threads to run
63 concurrently. It is also possible to force the regex module to release the
64 GIL during matching by calling the matching methods with the keyword
65 argument ``concurrent=True``. The behaviour is undefined if the string
66 changes during matching, so use it *only* when it is guaranteed that that
72 This module supports Unicode 15.1.0. Full Unicode case-folding is
78 There are 2 kinds of flag: scoped and global. Scoped flags can apply to
79 only part of a pattern and can be turned on or off; global flags apply to
80 the entire pattern and can only be turned on.
82 The scoped flags are: ``ASCII (?a)``, ``FULLCASE (?f)``, ``IGNORECASE
83 (?i)``, ``LOCALE (?L)``, ``MULTILINE (?m)``, ``DOTALL (?s)``, ``UNICODE
84 (?u)``, ``VERBOSE (?x)``, ``WORD (?w)``.
86 The global flags are: ``BESTMATCH (?b)``, ``ENHANCEMATCH (?e)``, ``POSIX
87 (?p)``, ``REVERSE (?r)``, ``VERSION0 (?V0)``, ``VERSION1 (?V1)``.
89 If neither the ASCII, LOCALE nor UNICODE flag is specified, it will default
90 to UNICODE if the regex pattern is a Unicode string and ASCII if it's a
93 The ENHANCEMATCH flag makes fuzzy matching attempt to improve the fit of
94 the next match that it finds.
96 The BESTMATCH flag makes fuzzy matching search for the best match instead
102 In order to be compatible with the re module, this module has 2 behaviours:
104 * **Version 0** behaviour (old behaviour, compatible with the re module):
106 Please note that the re module's behaviour may change over time, and I'll
107 endeavour to match that behaviour in version 0.
109 * Indicated by the VERSION0 flag.
111 * Zero-width matches are not handled correctly in the re module before
112 Python 3.7. The behaviour in those earlier versions is:
114 * ``.split`` won't split a string at a zero-width match.
116 * ``.sub`` will advance by one character after a zero-width match.
118 * Inline flags apply to the entire pattern, and they can't be turned off.
120 * Only simple sets are supported.
122 * Case-insensitive matches in Unicode use simple case-folding by default.
124 * **Version 1** behaviour (new behaviour, possibly different from the re
127 * Indicated by the VERSION1 flag.
129 * Zero-width matches are handled correctly.
131 * Inline flags apply to the end of the group or pattern, and they can be
136 29171aa128da69afdf4bde412d5bedc335f2ca8fcfe4489038577d05f16181e5 394706 regex-2023.12.25.tar.gz