regex 2026.3.32


pip install regex

  Latest version

Released: Mar 28, 2026

Project Links

Meta
Author: Matthew Barnett
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers

Operating System
  • OS Independent

Programming Language
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Scientific/Engineering :: Information Analysis
  • Software Development :: Libraries :: Python Modules
  • Text Processing
  • Text Processing :: General

Introduction

This regex implementation is backwards-compatible with the standard ‘re’ module, but offers additional functionality.

Python 2

Python 2 is no longer supported. The last release that supported Python 2 was 2021.11.10.

PyPy

This module is targeted at CPython. It expects that all codepoints are the same width, so it won’t behave properly with PyPy outside U+0000..U+007F because PyPy stores strings as UTF-8.

Multithreading

The regex module releases the GIL during matching on instances of the built-in (immutable) string classes, enabling other Python threads to run concurrently. It is also possible to force the regex module to release the GIL during matching by calling the matching methods with the keyword argument concurrent=True. The behaviour is undefined if the string changes during matching, so use it only when it is guaranteed that that won’t happen.

Unicode

This module supports Unicode 17.0.0. Full Unicode case-folding is supported.

Flags

There are 2 kinds of flag: scoped and global. Scoped flags can apply to only part of a pattern and can be turned on or off; global flags apply to the entire pattern and can only be turned on.

The scoped flags are: ASCII (?a), FULLCASE (?f), IGNORECASE (?i), LOCALE (?L), MULTILINE (?m), DOTALL (?s), UNICODE (?u), VERBOSE (?x), WORD (?w).

The global flags are: BESTMATCH (?b), ENHANCEMATCH (?e), POSIX (?p), REVERSE (?r), VERSION0 (?V0), VERSION1 (?V1).

If neither the ASCII, LOCALE nor UNICODE flag is specified, it will default to UNICODE if the regex pattern is a Unicode string and ASCII if it’s a bytestring.

The ENHANCEMATCH flag makes fuzzy matching attempt to improve the fit of the next match that it finds.

The BESTMATCH flag makes fuzzy matching search for the best match instead of the next match.

Old vs new behaviour

In order to be compatible with the re module, this module has 2 behaviours:

  • Version 0 behaviour (old behaviour, compatible with the re module):

    Please note that the re module’s behaviour may change over time, and I’ll endeavour to match that behaviour in version 0.

    • Indicated by the VERSION0 flag.

    • Zero-width matches are not handled correctly in the re module before Python 3.7. The behaviour in those earlier versions is:

      • .split won’t split a string at a zero-width match.

      • .sub will advance by one character after a zero-width match.

    • Inline flags apply to the entire pattern, and they can’t be turned off.

    • Only simple sets are supported.

    • Case-insensitive matches in Unicode use simple case-folding by default.

  • Version 1 behaviour (new behaviour, possibly different from the re module):

    • Indicated by the VERSION1 flag.

    • Zero-width matches are handled correctly.

    • Inline flags apply to the end of the group or pattern, and they can be turned off.

    • Nested sets and set operations are supported.

    • Case-insensitive matches in Unicode use full case-folding by default.

If no version is specified, the regex module will default to regex.DEFAULT_VERSION.

Case-insensitive matches in Unicode

The regex module supports both simple and full case-folding for case-insensitive matches in Unicode. Use of full case-folding can be turned on using the FULLCASE flag. Please note that this flag affects how the IGNORECASE flag works; the FULLCASE flag itself does not turn on case-insensitive matching.

Version 0 behaviour: the flag is off by default.

Version 1 behaviour: the flag is on by default.

Nested sets and set operations

It’s not possible to support both simple sets, as used in the re module, and nested sets at the same time because of a difference in the meaning of an unescaped "[" in a set.

For example, the pattern [[a-z]--[aeiou]] is treated in the version 0 behaviour (simple sets, compatible with the re module) as:

  • Set containing “[” and the letters “a” to “z”

  • Literal “–”

  • Set containing letters “a”, “e”, “i”, “o”, “u”

  • Literal “]”

but in the version 1 behaviour (nested sets, enhanced behaviour) as:

  • Set which is:

    • Set containing the letters “a” to “z”

  • but excluding:

    • Set containing the letters “a”, “e”, “i”, “o”, “u”

Version 0 behaviour: only simple sets are supported.

Version 1 behaviour: nested sets and set operations are supported.

Notes on named groups

All groups have a group number, starting from 1.

Groups with the same group name will have the same group number, and groups with a different group name will have a different group number.

The same name can be used by more than one group, with later captures ‘overwriting’ earlier captures. All the captures of the group will be available from the captures method of the match object.

Group numbers will be reused across different branches of a branch reset, eg. (?|(first)|(second)) has only group 1. If groups have different group names then they will, of course, have different group numbers, eg. (?|(?P<foo>first)|(?P<bar>second)) has group 1 (“foo”) and group 2 (“bar”).

In the regex (\s+)(?|(?P<foo>[A-Z]+)|(\w+) (?P<foo>[0-9]+) there are 2 groups:

  • (\s+) is group 1.

  • (?P<foo>[A-Z]+) is group 2, also called “foo”.

  • (\w+) is group 2 because of the branch reset.

  • (?P<foo>[0-9]+) is group 2 because it’s called “foo”.

If you want to prevent (\w+) from being group 2, you need to name it (different name, different group number).

Additional features

The issue numbers relate to the Python bug tracker, except where listed otherwise.

Added \p{Horiz_Space} and \p{Vert_Space} (GitHub issue 477)

\p{Horiz_Space} or \p{H} matches horizontal whitespace and \p{Vert_Space} or \p{V} matches vertical whitespace.

Added support for lookaround in conditional pattern (Hg issue 163)

The test of a conditional pattern can be a lookaround.

>>> regex.match(r'(?(?=\d)\d+|\w+)', '123abc')
<regex.Match object; span=(0, 3), match='123'>
>>> regex.match(r'(?(?=\d)\d+|\w+)', 'abc123')
<regex.Match object; span=(0, 6), match='abc123'>

This is not quite the same as putting a lookaround in the first branch of a pair of alternatives.

>>> print(regex.match(r'(?:(?=\d)\d+\b|\w+)', '123abc'))
<regex.Match object; span=(0, 6), match='123abc'>
>>> print(regex.match(r'(?(?=\d)\d+\b|\w+)', '123abc'))
None

In the first example, the lookaround matched, but the remainder of the first branch failed to match, and so the second branch was attempted, whereas in the second example, the lookaround matched, and the first branch failed to match, but the second branch was not attempted.

Added POSIX matching (leftmost longest) (Hg issue 150)

The POSIX standard for regex is to return the leftmost longest match. This can be turned on using the POSIX flag.

>>> # Normal matching.
>>> regex.search(r'Mr|Mrs', 'Mrs')
<regex.Match object; span=(0, 2), match='Mr'>
>>> regex.search(r'one(self)?(selfsufficient)?', 'oneselfsufficient')
<regex.Match object; span=(0, 7), match='oneself'>
>>> # POSIX matching.
>>> regex.search(r'(?p)Mr|Mrs', 'Mrs')
<regex.Match object; span=(0, 3), match='Mrs'>
>>> regex.search(r'(?p)one(self)?(selfsufficient)?', 'oneselfsufficient')
<regex.Match object; span=(0, 17), match='oneselfsufficient'>

Note that it will take longer to find matches because when it finds a match at a certain position, it won’t return that immediately, but will keep looking to see if there’s another longer match there.

Added (?(DEFINE)...) (Hg issue 152)

If there’s no group called “DEFINE”, then … will be ignored except that any groups defined within it can be called and that the normal rules for numbering groups still apply.

>>> regex.search(r'(?(DEFINE)(?P<quant>\d+)(?P<item>\w+))(?&quant) (?&item)', '5 elephants')
<regex.Match object; span=(0, 11), match='5 elephants'>

Added (*PRUNE), (*SKIP) and (*FAIL) (Hg issue 153)

(*PRUNE) discards the backtracking info up to that point. When used in an atomic group or a lookaround, it won’t affect the enclosing pattern.

(*SKIP) is similar to (*PRUNE), except that it also sets where in the text the next attempt to match will start. When used in an atomic group or a lookaround, it won’t affect the enclosing pattern.

(*FAIL) causes immediate backtracking. (*F) is a permitted abbreviation.

Added \K (Hg issue 151)

Keeps the part of the entire match after the position where \K occurred; the part before it is discarded.

It does not affect what groups return.

>>> m = regex.search(r'(\w\w\K\w\w\w)', 'abcdef')
>>> m[0]
'cde'
>>> m[1]
'abcde'
>>>
>>> m = regex.search(r'(?r)(\w\w\K\w\w\w)', 'abcdef')
>>> m[0]
'bc'
>>> m[1]
'bcdef'

Added capture subscripting for expandf and subf/subfn (Hg issue 133)

You can use subscripting to get the captures of a repeated group.

>>> m = regex.match(r"(\w)+", "abc")
>>> m.expandf("{1}")
'c'
>>> m.expandf("{1[0]} {1[1]} {1[2]}")
'a b c'
>>> m.expandf("{1[-1]} {1[-2]} {1[-3]}")
'c b a'
>>>
>>> m = regex.match(r"(?P<letter>\w)+", "abc")
>>> m.expandf("{letter}")
'c'
>>> m.expandf("{letter[0]} {letter[1]} {letter[2]}")
'a b c'
>>> m.expandf("{letter[-1]} {letter[-2]} {letter[-3]}")
'c b a'

Added support for referring to a group by number using (?P=...)

This is in addition to the existing \g<...>.

Fixed the handling of locale-sensitive regexes

The LOCALE flag is intended for legacy code and has limited support. You’re still recommended to use Unicode instead.

Added partial matches (Hg issue 102)

A partial match is one that matches up to the end of string, but that string has been truncated and you want to know whether a complete match could be possible if the string had not been truncated.

Partial matches are supported by match, search, fullmatch and finditer with the partial keyword argument.

Match objects have a partial attribute, which is True if it’s a partial match.

For example, if you wanted a user to enter a 4-digit number and check it character by character as it was being entered:

>>> pattern = regex.compile(r'\d{4}')

>>> # Initially, nothing has been entered:
>>> print(pattern.fullmatch('', partial=True))
<regex.Match object; span=(0, 0), match='', partial=True>

>>> # An empty string is OK, but it's only a partial match.
>>> # The user enters a letter:
>>> print(pattern.fullmatch('a', partial=True))
None
>>> # It'll never match.

>>> # The user deletes that and enters a digit:
>>> print(pattern.fullmatch('1', partial=True))
<regex.Match object; span=(0, 1), match='1', partial=True>
>>> # It matches this far, but it's only a partial match.

>>> # The user enters 2 more digits:
>>> print(pattern.fullmatch('123', partial=True))
<regex.Match object; span=(0, 3), match='123', partial=True>
>>> # It matches this far, but it's only a partial match.

>>> # The user enters another digit:
>>> print(pattern.fullmatch('1234', partial=True))
<regex.Match object; span=(0, 4), match='1234'>
>>> # It's a complete match.

>>> # If the user enters another digit:
>>> print(pattern.fullmatch('12345', partial=True))
None
>>> # It's no longer a match.

>>> # This is a partial match:
>>> pattern.match('123', partial=True).partial
True

>>> # This is a complete match:
>>> pattern.match('1233', partial=True).partial
False

* operator not working correctly with sub() (Hg issue 106)

Sometimes it’s not clear how zero-width matches should be handled. For example, should .* match 0 characters directly after matching >0 characters?

>>> regex.sub('.*', 'x', 'test')
'xx'
>>> regex.sub('.*?', '|', 'test')
'|||||||||'

Added capturesdict (Hg issue 86)

capturesdict is a combination of groupdict and captures:

groupdict returns a dict of the named groups and the last capture of those groups.

captures returns a list of all the captures of a group

capturesdict returns a dict of the named groups and lists of all the captures of those groups.

>>> m = regex.match(r"(?:(?P<word>\w+) (?P<digits>\d+)\n)+", "one 1\ntwo 2\nthree 3\n")
>>> m.groupdict()
{'word': 'three', 'digits': '3'}
>>> m.captures("word")
['one', 'two', 'three']
>>> m.captures("digits")
['1', '2', '3']
>>> m.capturesdict()
{'word': ['one', 'two', 'three'], 'digits': ['1', '2', '3']}

Added allcaptures and allspans (Git issue 474)

allcaptures returns a list of all the captures of all the groups.

allspans returns a list of all the spans of the all captures of all the groups.

>>> m = regex.match(r"(?:(?P<word>\w+) (?P<digits>\d+)\n)+", "one 1\ntwo 2\nthree 3\n")
>>> m.allcaptures()
(['one 1\ntwo 2\nthree 3\n'], ['one', 'two', 'three'], ['1', '2', '3'])
>>> m.allspans()
([(0, 20)], [(0, 3), (6, 9), (12, 17)], [(4, 5), (10, 11), (18, 19)])

Allow duplicate names of groups (Hg issue 87)

Group names can be duplicated.

>>> # With optional groups:
>>>
>>> # Both groups capture, the second capture 'overwriting' the first.
>>> m = regex.match(r"(?P<item>\w+)? or (?P<item>\w+)?", "first or second")
>>> m.group("item")
'second'
>>> m.captures("item")
['first', 'second']
>>> # Only the second group captures.
>>> m = regex.match(r"(?P<item>\w+)? or (?P<item>\w+)?", " or second")
>>> m.group("item")
'second'
>>> m.captures("item")
['second']
>>> # Only the first group captures.
>>> m = regex.match(r"(?P<item>\w+)? or (?P<item>\w+)?", "first or ")
>>> m.group("item")
'first'
>>> m.captures("item")
['first']
>>>
>>> # With mandatory groups:
>>>
>>> # Both groups capture, the second capture 'overwriting' the first.
>>> m = regex.match(r"(?P<item>\w*) or (?P<item>\w*)?", "first or second")
>>> m.group("item")
'second'
>>> m.captures("item")
['first', 'second']
>>> # Again, both groups capture, the second capture 'overwriting' the first.
>>> m = regex.match(r"(?P<item>\w*) or (?P<item>\w*)", " or second")
>>> m.group("item")
'second'
>>> m.captures("item")
['', 'second']
>>> # And yet again, both groups capture, the second capture 'overwriting' the first.
>>> m = regex.match(r"(?P<item>\w*) or (?P<item>\w*)", "first or ")
>>> m.group("item")
''
>>> m.captures("item")
['first', '']

Added fullmatch (issue #16203)

fullmatch behaves like match, except that it must match all of the string.

>>> print(regex.fullmatch(r"abc", "abc").span())
(0, 3)
>>> print(regex.fullmatch(r"abc", "abcx"))
None
>>> print(regex.fullmatch(r"abc", "abcx", endpos=3).span())
(0, 3)
>>> print(regex.fullmatch(r"abc", "xabcy", pos=1, endpos=4).span())
(1, 4)
>>>
>>> regex.match(r"a.*?", "abcd").group(0)
'a'
>>> regex.fullmatch(r"a.*?", "abcd").group(0)
'abcd'

Added subf and subfn

subf and subfn are alternatives to sub and subn respectively. When passed a replacement string, they treat it as a format string.

>>> regex.subf(r"(\w+) (\w+)", "{0} => {2} {1}", "foo bar")
'foo bar => bar foo'
>>> regex.subf(r"(?P<word1>\w+) (?P<word2>\w+)", "{word2} {word1}", "foo bar")
'bar foo'

Added expandf to match object

expandf is an alternative to expand. When passed a replacement string, it treats it as a format string.

>>> m = regex.match(r"(\w+) (\w+)", "foo bar")
>>> m.expandf("{0} => {2} {1}")
'foo bar => bar foo'
>>>
>>> m = regex.match(r"(?P<word1>\w+) (?P<word2>\w+)", "foo bar")
>>> m.expandf("{word2} {word1}")
'bar foo'

Detach searched string

A match object contains a reference to the string that was searched, via its string attribute. The detach_string method will ‘detach’ that string, making it available for garbage collection, which might save valuable memory if that string is very large.

>>> m = regex.search(r"\w+", "Hello world")
>>> print(m.group())
Hello
>>> print(m.string)
Hello world
>>> m.detach_string()
>>> print(m.group())
Hello
>>> print(m.string)
None

Recursive patterns (Hg issue 27)

Recursive and repeated patterns are supported.

(?R) or (?0) tries to match the entire regex recursively. (?1), (?2), etc, try to match the relevant group.

(?&name) tries to match the named group.

>>> regex.match(r"(Tarzan|Jane) loves (?1)", "Tarzan loves Jane").groups()
('Tarzan',)
>>> regex.match(r"(Tarzan|Jane) loves (?1)", "Jane loves Tarzan").groups()
('Jane',)

>>> m = regex.search(r"(\w)(?:(?R)|(\w?))\1", "kayak")
>>> m.group(0, 1, 2)
('kayak', 'k', None)

The first two examples show how the subpattern within the group is reused, but is _not_ itself a group. In other words, "(Tarzan|Jane) loves (?1)" is equivalent to "(Tarzan|Jane) loves (?:Tarzan|Jane)".

It’s possible to backtrack into a recursed or repeated group.

You can’t call a group if there is more than one group with that group name or group number ("ambiguous group reference").

The alternative forms (?P>name) and (?P&name) are also supported.

Full Unicode case-folding is supported

In version 1 behaviour, the regex module uses full case-folding when performing case-insensitive matches in Unicode.

>>> regex.match(r"(?iV1)strasse", "stra\N{LATIN SMALL LETTER SHARP S}e").span()
(0, 6)
>>> regex.match(r"(?iV1)stra\N{LATIN SMALL LETTER SHARP S}e", "STRASSE").span()
(0, 7)

In version 0 behaviour, it uses simple case-folding for backward compatibility with the re module.

Approximate “fuzzy” matching (Hg issue 12, Hg issue 41, Hg issue 109)

Regex usually attempts an exact match, but sometimes an approximate, or “fuzzy”, match is needed, for those cases where the text being searched may contain errors in the form of inserted, deleted or substituted characters.

A fuzzy regex specifies which types of errors are permitted, and, optionally, either the minimum and maximum or only the maximum permitted number of each type. (You cannot specify only a minimum.)

The 3 types of error are:

  • Insertion, indicated by “i”

  • Deletion, indicated by “d”

  • Substitution, indicated by “s”

In addition, “e” indicates any type of error.

The fuzziness of a regex item is specified between “{” and “}” after the item.

Examples:

  • foo match “foo” exactly

  • (?:foo){i} match “foo”, permitting insertions

  • (?:foo){d} match “foo”, permitting deletions

  • (?:foo){s} match “foo”, permitting substitutions

  • (?:foo){i,s} match “foo”, permitting insertions and substitutions

  • (?:foo){e} match “foo”, permitting errors

If a certain type of error is specified, then any type not specified will not be permitted.

In the following examples I’ll omit the item and write only the fuzziness:

  • {d<=3} permit at most 3 deletions, but no other types

  • {i<=1,s<=2} permit at most 1 insertion and at most 2 substitutions, but no deletions

  • {1<=e<=3} permit at least 1 and at most 3 errors

  • {i<=2,d<=2,e<=3} permit at most 2 insertions, at most 2 deletions, at most 3 errors in total, but no substitutions

It’s also possible to state the costs of each type of error and the maximum permitted total cost.

Examples:

  • {2i+2d+1s<=4} each insertion costs 2, each deletion costs 2, each substitution costs 1, the total cost must not exceed 4

  • {i<=1,d<=1,s<=1,2i+2d+1s<=4} at most 1 insertion, at most 1 deletion, at most 1 substitution; each insertion costs 2, each deletion costs 2, each substitution costs 1, the total cost must not exceed 4

You can also use “<” instead of “<=” if you want an exclusive minimum or maximum.

You can add a test to perform on a character that’s substituted or inserted.

Examples:

  • {s<=2:[a-z]} at most 2 substitutions, which must be in the character set [a-z].

  • {s<=2,i<=3:\d} at most 2 substitutions, at most 3 insertions, which must be digits.

By default, fuzzy matching searches for the first match that meets the given constraints. The ENHANCEMATCH flag will cause it to attempt to improve the fit (i.e. reduce the number of errors) of the match that it has found.

The BESTMATCH flag will make it search for the best match instead.

Further examples to note:

  • regex.search("(dog){e}", "cat and dog")[1] returns "cat" because that matches "dog" with 3 errors (an unlimited number of errors is permitted).

  • regex.search("(dog){e<=1}", "cat and dog")[1] returns " dog" (with a leading space) because that matches "dog" with 1 error, which is within the limit.

  • regex.search("(?e)(dog){e<=1}", "cat and dog")[1] returns "dog" (without a leading space) because the fuzzy search matches " dog" with 1 error, which is within the limit, and the (?e) then it attempts a better fit.

In the first two examples there are perfect matches later in the string, but in neither case is it the first possible match.

The match object has an attribute fuzzy_counts which gives the total number of substitutions, insertions and deletions.

>>> # A 'raw' fuzzy match:
>>> regex.fullmatch(r"(?:cats|cat){e<=1}", "cat").fuzzy_counts
(0, 0, 1)
>>> # 0 substitutions, 0 insertions, 1 deletion.

>>> # A better match might be possible if the ENHANCEMATCH flag used:
>>> regex.fullmatch(r"(?e)(?:cats|cat){e<=1}", "cat").fuzzy_counts
(0, 0, 0)
>>> # 0 substitutions, 0 insertions, 0 deletions.

The match object also has an attribute fuzzy_changes which gives a tuple of the positions of the substitutions, insertions and deletions.

>>> m = regex.search('(fuu){i<=2,d<=2,e<=5}', 'anaconda foo bar')
>>> m
<regex.Match object; span=(7, 10), match='a f', fuzzy_counts=(0, 2, 2)>
>>> m.fuzzy_changes
([], [7, 8], [10, 11])

What this means is that if the matched part of the string had been:

'anacondfuuoo bar'

it would’ve been an exact match.

However, there were insertions at positions 7 and 8:

'anaconda fuuoo bar'
        ^^

and deletions at positions 10 and 11:

'anaconda f~~oo bar'
           ^^

So the actual string was:

'anaconda foo bar'

Named lists \L<name> (Hg issue 11)

There are occasions where you may want to include a list (actually, a set) of options in a regex.

One way is to build the pattern like this:

>>> p = regex.compile(r"first|second|third|fourth|fifth")

but if the list is large, parsing the resulting regex can take considerable time, and care must also be taken that the strings are properly escaped and properly ordered, for example, “cats” before “cat”.

The new alternative is to use a named list:

>>> option_set = ["first", "second", "third", "fourth", "fifth"]
>>> p = regex.compile(r"\L<options>", options=option_set)

The order of the items is irrelevant, they are treated as a set. The named lists are available as the .named_lists attribute of the pattern object :

>>> print(p.named_lists)
{'options': frozenset({'third', 'first', 'fifth', 'fourth', 'second'})}

If there are any unused keyword arguments, ValueError will be raised unless you tell it otherwise:

>>> option_set = ["first", "second", "third", "fourth", "fifth"]
>>> p = regex.compile(r"\L<options>", options=option_set, other_options=[])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python310\lib\site-packages\regex\regex.py", line 353, in compile
    return _compile(pattern, flags, ignore_unused, kwargs, cache_pattern)
  File "C:\Python310\lib\site-packages\regex\regex.py", line 500, in _compile
    complain_unused_args()
  File "C:\Python310\lib\site-packages\regex\regex.py", line 483, in complain_unused_args
    raise ValueError('unused keyword argument {!a}'.format(any_one))
ValueError: unused keyword argument 'other_options'
>>> p = regex.compile(r"\L<options>", options=option_set, other_options=[], ignore_unused=True)
>>> p = regex.compile(r"\L<options>", options=option_set, other_options=[], ignore_unused=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python310\lib\site-packages\regex\regex.py", line 353, in compile
    return _compile(pattern, flags, ignore_unused, kwargs, cache_pattern)
  File "C:\Python310\lib\site-packages\regex\regex.py", line 500, in _compile
    complain_unused_args()
  File "C:\Python310\lib\site-packages\regex\regex.py", line 483, in complain_unused_args
    raise ValueError('unused keyword argument {!a}'.format(any_one))
ValueError: unused keyword argument 'other_options'
>>>

Start and end of word

\m matches at the start of a word.

\M matches at the end of a word.

Compare with \b, which matches at the start or end of a word.

Unicode line separators

Normally the only line separator is \n (\x0A), but if the WORD flag is turned on then the line separators are \x0D\x0A, \x0A, \x0B, \x0C and \x0D, plus \x85, \u2028 and \u2029 when working with Unicode.

This affects the regex dot ".", which, with the DOTALL flag turned off, matches any character except a line separator. It also affects the line anchors ^ and $ (in multiline mode).

Set operators

Version 1 behaviour only

Set operators have been added, and a set [...] can include nested sets.

The operators, in order of increasing precedence, are:

  • || for union (“x||y” means “x or y”)

  • ~~ (double tilde) for symmetric difference (“x~~y” means “x or y, but not both”)

  • && for intersection (“x&&y” means “x and y”)

  • -- (double dash) for difference (“x–y” means “x but not y”)

Implicit union, ie, simple juxtaposition like in [ab], has the highest precedence. Thus, [ab&&cd] is the same as [[a||b]&&[c||d]].

Examples:

  • [ab] # Set containing ‘a’ and ‘b’

  • [a-z] # Set containing ‘a’ .. ‘z’

  • [[a-z]--[qw]] # Set containing ‘a’ .. ‘z’, but not ‘q’ or ‘w’

  • [a-z--qw] # Same as above

  • [\p{L}--QW] # Set containing all letters except ‘Q’ and ‘W’

  • [\p{N}--[0-9]] # Set containing all numbers except ‘0’ .. ‘9’

  • [\p{ASCII}&&\p{Letter}] # Set containing all characters which are ASCII and letter

regex.escape (issue #2650)

regex.escape has an additional keyword parameter special_only. When True, only ‘special’ regex characters, such as ‘?’, are escaped.

>>> regex.escape("foo!?", special_only=False)
'foo\\!\\?'
>>> regex.escape("foo!?", special_only=True)
'foo!\\?'

regex.escape (Hg issue 249)

regex.escape has an additional keyword parameter literal_spaces. When True, spaces are not escaped.

>>> regex.escape("foo bar!?", literal_spaces=False)
'foo\\ bar!\\?'
>>> regex.escape("foo bar!?", literal_spaces=True)
'foo bar!\\?'

Repeated captures (issue #7132)

A match object has additional methods which return information on all the successful matches of a repeated group. These methods are:

  • matchobject.captures([group1, ...])

    • Returns a list of the strings matched in a group or groups. Compare with matchobject.group([group1, ...]).

  • matchobject.starts([group])

    • Returns a list of the start positions. Compare with matchobject.start([group]).

  • matchobject.ends([group])

    • Returns a list of the end positions. Compare with matchobject.end([group]).

  • matchobject.spans([group])

    • Returns a list of the spans. Compare with matchobject.span([group]).

>>> m = regex.search(r"(\w{3})+", "123456789")
>>> m.group(1)
'789'
>>> m.captures(1)
['123', '456', '789']
>>> m.start(1)
6
>>> m.starts(1)
[0, 3, 6]
>>> m.end(1)
9
>>> m.ends(1)
[3, 6, 9]
>>> m.span(1)
(6, 9)
>>> m.spans(1)
[(0, 3), (3, 6), (6, 9)]

Atomic grouping (?>...) (issue #433030)

If the following pattern subsequently fails, then the subpattern as a whole will fail.

Possessive quantifiers

(?:...)?+ ; (?:...)*+ ; (?:...)++ ; (?:...){min,max}+

The subpattern is matched up to ‘max’ times. If the following pattern subsequently fails, then all the repeated subpatterns will fail as a whole. For example, (?:...)++ is equivalent to (?>(?:...)+).

Scoped flags (issue #433028)

(?flags-flags:...)

The flags will apply only to the subpattern. Flags can be turned on or off.

Definition of ‘word’ character (issue #1693050)

The definition of a ‘word’ character has been expanded for Unicode. It conforms to the Unicode specification at http://www.unicode.org/reports/tr29/.

Variable-length lookbehind

A lookbehind can match a variable-length string.

Flags argument for regex.split, regex.sub and regex.subn (issue #3482)

regex.split, regex.sub and regex.subn support a ‘flags’ argument.

Pos and endpos arguments for regex.sub and regex.subn

regex.sub and regex.subn support ‘pos’ and ‘endpos’ arguments.

‘Overlapped’ argument for regex.findall and regex.finditer

regex.findall and regex.finditer support an ‘overlapped’ flag which permits overlapped matches.

Splititer

regex.splititer has been added. It’s a generator equivalent of regex.split.

Subscripting match objects for groups

A match object accepts access to the groups via subscripting and slicing:

>>> m = regex.search(r"(?P<before>.*?)(?P<num>\d+)(?P<after>.*)", "pqr123stu")
>>> print(m["before"])
pqr
>>> print(len(m))
4
>>> print(m[:])
('pqr123stu', 'pqr', '123', 'stu')

Named groups

Groups can be named with (?<name>...) as well as the existing (?P<name>...).

Group references

Groups can be referenced within a pattern with \g<name>. This also allows there to be more than 99 groups.

Named characters \N{name}

Named characters are supported. Note that only those known by Python’s Unicode database will be recognised.

Unicode codepoint properties, including scripts and blocks

\p{property=value}; \P{property=value}; \p{value} ; \P{value}

Many Unicode properties are supported, including blocks and scripts. \p{property=value} or \p{property:value} matches a character whose property property has value value. The inverse of \p{property=value} is \P{property=value} or \p{^property=value}.

If the short form \p{value} is used, the properties are checked in the order: General_Category, Script, Block, binary property:

  • Latin, the ‘Latin’ script (Script=Latin).

  • BasicLatin, the ‘BasicLatin’ block (Block=BasicLatin).

  • Alphabetic, the ‘Alphabetic’ binary property (Alphabetic=Yes).

A short form starting with Is indicates a script or binary property:

  • IsLatin, the ‘Latin’ script (Script=Latin).

  • IsAlphabetic, the ‘Alphabetic’ binary property (Alphabetic=Yes).

A short form starting with In indicates a block property:

  • InBasicLatin, the ‘BasicLatin’ block (Block=BasicLatin).

POSIX character classes

[[:alpha:]]; [[:^alpha:]]

POSIX character classes are supported. These are normally treated as an alternative form of \p{...}.

The exceptions are alnum, digit, punct and xdigit, whose definitions are different from those of Unicode.

[[:alnum:]] is equivalent to \p{posix_alnum}.

[[:digit:]] is equivalent to \p{posix_digit}.

[[:punct:]] is equivalent to \p{posix_punct}.

[[:xdigit:]] is equivalent to \p{posix_xdigit}.

Search anchor \G

A search anchor has been added. It matches at the position where each search started/continued and can be used for contiguous matches or in negative variable-length lookbehinds to limit how far back the lookbehind goes:

>>> regex.findall(r"\w{2}", "abcd ef")
['ab', 'cd', 'ef']
>>> regex.findall(r"\G\w{2}", "abcd ef")
['ab', 'cd']
  • The search starts at position 0 and matches ‘ab’.

  • The search continues at position 2 and matches ‘cd’.

  • The search continues at position 4 and fails to match any letters.

  • The anchor stops the search start position from being advanced, so there are no more results.

Reverse searching

Searches can also work backwards:

>>> regex.findall(r".", "abc")
['a', 'b', 'c']
>>> regex.findall(r"(?r).", "abc")
['c', 'b', 'a']

Note that the result of a reverse search is not necessarily the reverse of a forward search:

>>> regex.findall(r"..", "abcde")
['ab', 'cd']
>>> regex.findall(r"(?r)..", "abcde")
['de', 'bc']

Matching a single grapheme \X

The grapheme matcher is supported. It conforms to the Unicode specification at http://www.unicode.org/reports/tr29/.

Branch reset (?|...|...)

Group numbers will be reused across the alternatives, but groups with different names will have different group numbers.

>>> regex.match(r"(?|(first)|(second))", "first").groups()
('first',)
>>> regex.match(r"(?|(first)|(second))", "second").groups()
('second',)

Note that there is only one group.

Default Unicode word boundary

The WORD flag changes the definition of a ‘word boundary’ to that of a default Unicode word boundary. This applies to \b and \B.

Timeout

The matching methods and functions support timeouts. The timeout (in seconds) applies to the entire operation:

>>> from time import sleep
>>>
>>> def fast_replace(m):
...     return 'X'
...
>>> def slow_replace(m):
...     sleep(0.5)
...     return 'X'
...
>>> regex.sub(r'[a-z]', fast_replace, 'abcde', timeout=2)
'XXXXX'
>>> regex.sub(r'[a-z]', slow_replace, 'abcde', timeout=2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python310\lib\site-packages\regex\regex.py", line 278, in sub
    return pat.sub(repl, string, count, pos, endpos, concurrent, timeout)
TimeoutError: regex timed out
2026.3.32 Mar 28, 2026
2026.2.28 Feb 28, 2026
2026.2.19 Feb 19, 2026
2026.1.15 Jan 14, 2026
2026.1.14 Jan 14, 2026
2025.11.3 Nov 03, 2025
2025.10.23 Oct 21, 2025
2025.10.22 Oct 21, 2025
2025.9.18 Sep 19, 2025
2025.9.1 Sep 01, 2025
2025.8.29 Aug 29, 2025
2025.7.34 Jul 31, 2025
2025.7.33 Jul 30, 2025
2025.7.31 Jul 30, 2025
2025.7.29 Jul 29, 2025
2024.11.6 Nov 06, 2024
2024.9.11 Sep 11, 2024
2024.7.24 Jul 24, 2024
2024.5.15 May 15, 2024
2024.5.10 May 10, 2024
2024.4.28 Apr 28, 2024
2024.4.16 Apr 16, 2024
2023.12.25 Dec 24, 2023
2023.10.3 Oct 03, 2023
2023.8.8 Aug 08, 2023
2023.6.3 Jun 03, 2023
2023.5.5 May 03, 2023
2023.5.4 May 02, 2023
2023.5.2 May 02, 2023
2023.3.23 Mar 23, 2023
2023.3.22 Mar 22, 2023
2022.10.31 Oct 31, 2022
2022.9.13 Sep 13, 2022
2022.9.11 Sep 11, 2022
2022.8.17 Aug 17, 2022
2022.7.25 Jul 25, 2022
2022.7.24 Jul 24, 2022
2022.7.9 Jul 09, 2022
2022.6.2 Jun 02, 2022
2022.4.24 Apr 24, 2022
2022.3.15 Mar 15, 2022
2022.3.2 Mar 02, 2022
2022.1.18 Jan 18, 2022
2021.11.10 Nov 09, 2021
2021.11.9 Nov 09, 2021
2021.11.2 Nov 02, 2021
2021.11.1 Nov 01, 2021
2021.10.23 Oct 22, 2021
2021.10.21 Oct 21, 2021
2021.10.8 Oct 08, 2021
2021.9.30 Sep 30, 2021
2021.9.24 Sep 24, 2021
2021.8.28 Aug 27, 2021
2021.8.27 Aug 27, 2021
2021.8.21 Aug 21, 2021
2021.8.3 Aug 03, 2021
2021.7.6 Jul 05, 2021
2021.7.5 Jul 05, 2021
2021.7.1 Jul 01, 2021
2021.4.4 Apr 04, 2021
2021.3.17 Mar 17, 2021
2020.11.13 Nov 13, 2020
2020.11.11 Nov 11, 2020
2020.10.28 Oct 28, 2020
2020.10.23 Oct 23, 2020
2020.10.22 Oct 22, 2020
2020.10.15 Oct 15, 2020
2020.10.11 Oct 11, 2020
2020.9.27 Sep 27, 2020
2020.7.14 Jul 14, 2020
2020.6.8 Jun 07, 2020
2020.6.7 Jun 07, 2020
2020.5.14 May 14, 2020
2020.5.13 May 13, 2020
2020.5.7 May 07, 2020
2020.4.4 Apr 04, 2020
2020.2.20 Feb 20, 2020
2020.2.18 Feb 18, 2020
2020.1.8 Jan 07, 2020
2020.1.7 Jan 07, 2020
2019.12.20 Dec 21, 2019
2019.12.19 Dec 18, 2019
2019.12.18 Dec 17, 2019
2019.12.17 Dec 17, 2019
2019.12.9 Dec 09, 2019
2019.11.1 Oct 31, 2019
2019.8.19 Aug 19, 2019
2019.6.8 Jun 08, 2019
2019.6.5 Jun 05, 2019
2019.6.2 Jun 02, 2019
2019.5.25 May 25, 2019
2019.4.14 Apr 14, 2019
2019.4.12 Apr 12, 2019
2019.4.10 Apr 10, 2019
2019.4.9 Apr 09, 2019
2019.3.12 Mar 12, 2019
2019.3.9 Mar 09, 2019
2019.3.8 Mar 08, 2019
2019.2.21 Feb 21, 2019
2019.2.20 Feb 20, 2019
2019.2.19 Feb 19, 2019
2019.2.18 Feb 18, 2019
2019.2.7 Feb 07, 2019
2019.2.6 Feb 06, 2019
2019.2.5 Feb 05, 2019
2019.2.3 Feb 03, 2019
2019.1.24 Jan 24, 2019
2019.1.23 Jan 23, 2019
2018.11.22 Nov 22, 2018
2018.11.7 Nov 07, 2018
2018.11.6 Nov 06, 2018
2018.11.3 Nov 03, 2018
2018.11.2 Nov 02, 2018
2018.8.29 Aug 29, 2018
2018.8.17 Aug 17, 2018
2018.7.11 Jul 11, 2018
2018.6.21 Jun 20, 2018
2018.6.20 Jun 20, 2018
2018.6.20a0 Jun 20, 2018
2018.6.9 Jun 09, 2018
2018.6.6 Jun 06, 2018
2018.2.21 Feb 21, 2018
2018.2.8 Feb 08, 2018
2018.2.3 Feb 03, 2018
2018.1.10 Jan 10, 2018
2017.12.12 Dec 12, 2017
2017.12.9 Dec 09, 2017
2017.12.5 Dec 05, 2017
2017.11.9 Nov 09, 2017
2017.11.8 Nov 08, 2017
2017.9.23 Sep 23, 2017
2017.7.28 Jul 28, 2017
2017.7.26 Jul 27, 2017
2017.7.11 Jul 11, 2017
2017.6.23 Jun 23, 2017
2017.6.20 Jun 20, 2017
2017.6.7 Jun 07, 2017
2017.5.26 May 26, 2017
2017.4.29 Apr 29, 2017
2017.4.23 Apr 23, 2017
2017.4.5 Apr 05, 2017
2017.2.8 Feb 08, 2017
2017.1.17 Jan 17, 2017
2017.1.14 Jan 14, 2017
2017.1.12 Jan 13, 2017
2016.12.27 Dec 27, 2016
2016.11.21 Nov 21, 2016
2016.11.18 Nov 18, 2016
2016.10.22 Oct 22, 2016
2016.9.22 Sep 22, 2016
2016.8.27 Aug 27, 2016
2016.7.21 Jul 21, 2016
2016.7.14 Jul 14, 2016
2016.6.24 Jun 24, 2016
2016.6.19 Jun 19, 2016
2016.6.14 Jun 14, 2016
2016.6.5 Jun 05, 2016
2016.6.2 Jun 02, 2016
2016.5.23 May 23, 2016
2016.5.15 May 15, 2016
2016.5.14 May 14, 2016
2016.5.13 May 13, 2016
2016.4.25 Apr 25, 2016
2016.4.15 Apr 15, 2016
2016.4.8 Apr 07, 2016
2016.4.3 Apr 03, 2016
2016.4.2 Apr 02, 2016
2016.4.1 Apr 01, 2016
2016.3.31 Mar 31, 2016
2016.3.26 Mar 26, 2016
2016.3.24 Mar 24, 2016
2016.3.2 Mar 02, 2016
2016.2.25 Feb 25, 2016
2016.2.24 Feb 24, 2016
2016.2.23 Feb 23, 2016
2016.1.10 Jan 10, 2016
2015.11.22 Nov 22, 2015
2015.11.14 Nov 14, 2015
2015.11.12 Nov 12, 2015
2015.11.9 Nov 09, 2015
2015.11.8 Nov 08, 2015
2015.11.7 Nov 07, 2015
2015.11.5
2015.11.5b0 Nov 05, 2015
2015.10.29 Oct 29, 2015
2015.10.22 Oct 22, 2015
2015.10.5 Oct 05, 2015
2015.10.1 Oct 01, 2015
2015.9.28 Sep 28, 2015
2015.9.23 Sep 23, 2015
2015.9.15 Sep 15, 2015
2015.9.14 Sep 14, 2015
2015.7.19 Jul 19, 2015
2015.7.12 Jul 12, 2015
2015.6.24 Jun 24, 2015
2015.6.21 Jun 21, 2015
2015.6.19 Jun 19, 2015
2015.6.15 Jun 15, 2015
2015.6.14 Jun 14, 2015
2015.6.10 Jun 10, 2015
2015.6.9 Jun 09, 2015
2015.6.4 Jun 04, 2015
2015.6.2 Jun 02, 2015
2015.5.28 May 28, 2015
2015.5.10 May 10, 2015
2015.5.7 May 07, 2015
2015.3.18 Mar 18, 2015
2014.12.24 Dec 24, 2014
2014.12.15 Dec 15, 2014
2014.11.14 Nov 14, 2014
2014.11.13 Nov 13, 2014
2014.11.3 Nov 03, 2014
2014.10.24 Oct 24, 2014
2014.10.23 Oct 23, 2014
2014.10.9 Oct 08, 2014
2014.10.7 Oct 07, 2014
2014.10.2 Oct 02, 2014
2014.10.1 Oct 01, 2014
2014.9.22 Sep 21, 2014
2014.9.18 Sep 17, 2014
2014.8.28 Aug 28, 2014
2014.8.15 Aug 15, 2014
2014.6.28 Jun 28, 2014
2014.5.23 May 23, 2014
2014.5.17 May 17, 2014
2014.4.10 Apr 10, 2014
2014.2.19 Apr 10, 2014
2014.2.16 Feb 16, 2014
2014.1.30 Jan 30, 2014
2014.1.20 Jan 20, 2014
2014.1.10 Jan 10, 2014
2013 Feb 16, 2013
0.1.20130125 Jan 25, 2013
0.1.20130124 Jan 24, 2013
0.1.20130120 Jan 20, 2013
0.1.20121216 Dec 16, 2012
0.1.20121120 Nov 20, 2012
0.1.20121113 Nov 13, 2012
0.1.20121105 Nov 05, 2012
0.1.20121031 Oct 31, 2012
0.1.20121017 Oct 17, 2012
0.1.20121008 Oct 08, 2012
0.1.20120904 Sep 04, 2012
0.1.20120825 Aug 25, 2012
0.1.20120803 Aug 03, 2012
0.1.20120710 Jul 10, 2012
0.1.20120709 Jul 09, 2012
0.1.20120708 Jul 08, 2012
0.1.20120705 Jul 05, 2012
0.1.20120613 Jun 13, 2012
0.1.20120611 Jun 11, 2012
0.1.20120506 May 06, 2012
0.1.20120504 May 04, 2012
0.1.20120503 May 03, 2012
0.1.20120502 May 02, 2012
0.1.20120416 Apr 16, 2012
0.1.20120323 Mar 23, 2012
0.1.20120317 Mar 18, 2012
0.1.20120316 Mar 16, 2012
0.1.20120303 Mar 03, 2012
0.1.20120301 Mar 01, 2012
0.1.20120209 Feb 09, 2012
0.1.20120208 Feb 08, 2012
0.1.20120129 Jan 29, 2012
0.1.20120128 Jan 29, 2012
0.1.20120126 Jan 26, 2012
0.1.20120123 Jan 23, 2012
0.1.20120122 Jan 22, 2012
0.1.20120119 Jan 19, 2012
0.1.20120115 Jan 15, 2012
0.1.20120114 Jan 14, 2012
0.1.20120112 Jan 12, 2012
0.1.20120105 Jan 05, 2012
0.1.20120103 Jan 03, 2012
0.1.20111223 Dec 23, 2011
0.1.20111103 Nov 03, 2011
0.1.20111014 Oct 15, 2011
0.1.20111006 Oct 06, 2011
0.1.20111005 Oct 05, 2011
0.1.20111004 Oct 04, 2011
0.1.20110929 Sep 29, 2011
0.1.20110927 Sep 27, 2011
0.1.20110922 Sep 22, 2011
0.1.20110922a0 Sep 22, 2011
0.1.20110917 Sep 17, 2011
0.1.20110917a0 Sep 17, 2011
0.1.20110717 Jul 17, 2011
0.1.20110702 Jul 02, 2011
0.1.20110627 Jun 27, 2011
0.1.20110623 Jun 23, 2011
0.1.20110623a0 Jun 23, 2011
0.1.20110616 Jun 16, 2011
0.1.20110610 Jun 10, 2011
0.1.20110609 Jun 09, 2011
0.1.20110608 Jun 08, 2011
0.1.20110608a0 Jun 08, 2011
0.1.20110524 May 24, 2011
0.1.20110514 May 14, 2011
0.1.20110510 May 11, 2011
0.1.20110504 May 04, 2011
0.1.20110502 May 02, 2011
0.1.20110429 Apr 29, 2011
0.1.20110315 Mar 15, 2011
0.1.20110314 Mar 14, 2011
0.1.20110313 Mar 13, 2011
0.1.20110124 Jan 24, 2011
0.1.20110106 Jan 06, 2011
0.1.20110104 Jan 04, 2011
0.1.20101231 Dec 31, 2010
0.1.20101230 Dec 30, 2010
0.1.20101229 Dec 29, 2010
0.1.20101228 Dec 28, 2010
0.1.20101228a0 Dec 28, 2010
0.1.20101224 Dec 24, 2010
0.1.20101210 Dec 10, 2010
0.1.20101207 Dec 07, 2010
0.1.20101130 Nov 30, 2010
0.1.20101123 Nov 23, 2010
0.1.20101121 Nov 21, 2010
0.1.20101120 Nov 20, 2010
0.1.20101113 Nov 13, 2010
0.1.20101106 Nov 06, 2010
0.1.20101102 Nov 02, 2010
0.1.20101102a0 Nov 02, 2010
0.1.20101101 Nov 01, 2010
0.1.20101030 Oct 30, 2010
0.1.20101030b0 Oct 30, 2010
0.1.20101029 Oct 30, 2010
0.1.20101009 Oct 09, 2010
0.1.20100918 Sep 18, 2010
0.1.20100913 Sep 13, 2010
0.1.20100912 Sep 12, 2010
0.1.20100824 Aug 24, 2010
0.1.20100816 Aug 17, 2010
0.1.20100814 Aug 14, 2010
0.1.20100725 Jul 25, 2010
0.1.20100719 Jul 20, 2010
0.1.20100709.1 Jul 13, 2010
0.1.20100709 Jul 09, 2010
0.1.20100706.1 Jul 06, 2010
0.1.20100706 Jul 06, 2010
0.1.20100331 Apr 02, 2010
0.1.20100323 Mar 24, 2010
0.1.20100305 Mar 16, 2010
0.1.20100226 Feb 26, 2010
0.1.20100217 Feb 17, 2010
2013-12-31
2013-11-29
2013-10-26
2013-10-25
2013-10-24
2013-10-23
2013-10-22
2013-10-21
2013-10-12
2013-10-04
2013-08-04
2013-06-26
2013-06-05
2013-05-21
2013-03-11
2013-02-23
2013-02-16

Wheel compatibility matrix

Platform CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13 CPython 3.14 CPython (additional flags: t) 3.13 CPython (additional flags: t) 3.14
macosx_10_13_universal2
macosx_10_13_x86_64
macosx_10_9_universal2
macosx_10_9_x86_64
macosx_11_0_arm64
manylinux2014_aarch64
manylinux2014_ppc64le
manylinux2014_s390x
manylinux2014_x86_64
manylinux_2_17_aarch64
manylinux_2_17_ppc64le
manylinux_2_17_s390x
manylinux_2_17_x86_64
manylinux_2_28_aarch64
manylinux_2_28_ppc64le
manylinux_2_28_s390x
manylinux_2_28_x86_64
manylinux_2_31_riscv64
manylinux_2_39_riscv64
musllinux_1_2_aarch64
musllinux_1_2_ppc64le
musllinux_1_2_riscv64
musllinux_1_2_s390x
musllinux_1_2_x86_64
win32
win_amd64
win_arm64

Files in release

regex-2026.3.32-cp310-cp310-macosx_10_9_universal2.whl (478.1KiB)
regex-2026.3.32-cp310-cp310-macosx_10_9_x86_64.whl (284.5KiB)
regex-2026.3.32-cp310-cp310-macosx_11_0_arm64.whl (282.6KiB)
regex-2026.3.32-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (767.9KiB)
regex-2026.3.32-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (834.2KiB)
regex-2026.3.32-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (877.7KiB)
regex-2026.3.32-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (772.1KiB)
regex-2026.3.32-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (768.1KiB)
regex-2026.3.32-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (752.2KiB)
regex-2026.3.32-cp310-cp310-musllinux_1_2_aarch64.whl (756.3KiB)
regex-2026.3.32-cp310-cp310-musllinux_1_2_ppc64le.whl (829.5KiB)
regex-2026.3.32-cp310-cp310-musllinux_1_2_riscv64.whl (740.2KiB)
regex-2026.3.32-cp310-cp310-musllinux_1_2_s390x.whl (818.8KiB)
regex-2026.3.32-cp310-cp310-musllinux_1_2_x86_64.whl (760.2KiB)
regex-2026.3.32-cp310-cp310-win32.whl (260.1KiB)
regex-2026.3.32-cp310-cp310-win_amd64.whl (272.1KiB)
regex-2026.3.32-cp310-cp310-win_arm64.whl (264.3KiB)
regex-2026.3.32-cp311-cp311-macosx_10_9_universal2.whl (478.1KiB)
regex-2026.3.32-cp311-cp311-macosx_10_9_x86_64.whl (284.5KiB)
regex-2026.3.32-cp311-cp311-macosx_11_0_arm64.whl (282.5KiB)
regex-2026.3.32-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (772.4KiB)
regex-2026.3.32-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (842.2KiB)
regex-2026.3.32-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (885.3KiB)
regex-2026.3.32-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (779.6KiB)
regex-2026.3.32-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (756.7KiB)
regex-2026.3.32-cp311-cp311-musllinux_1_2_aarch64.whl (763.1KiB)
regex-2026.3.32-cp311-cp311-musllinux_1_2_ppc64le.whl (835.9KiB)
regex-2026.3.32-cp311-cp311-musllinux_1_2_riscv64.whl (744.9KiB)
regex-2026.3.32-cp311-cp311-musllinux_1_2_s390x.whl (826.0KiB)
regex-2026.3.32-cp311-cp311-musllinux_1_2_x86_64.whl (766.8KiB)
regex-2026.3.32-cp311-cp311-win32.whl (260.1KiB)
regex-2026.3.32-cp311-cp311-win_amd64.whl (272.1KiB)
regex-2026.3.32-cp311-cp311-win_arm64.whl (264.3KiB)
regex-2026.3.32-cp312-cp312-macosx_10_13_universal2.whl (479.1KiB)
regex-2026.3.32-cp312-cp312-macosx_10_13_x86_64.whl (285.2KiB)
regex-2026.3.32-cp312-cp312-macosx_11_0_arm64.whl (283.0KiB)
regex-2026.3.32-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (777.8KiB)
regex-2026.3.32-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (845.5KiB)
regex-2026.3.32-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (892.2KiB)
regex-2026.3.32-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (782.7KiB)
regex-2026.3.32-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (758.0KiB)
regex-2026.3.32-cp312-cp312-musllinux_1_2_aarch64.whl (767.4KiB)
regex-2026.3.32-cp312-cp312-musllinux_1_2_ppc64le.whl (840.4KiB)
regex-2026.3.32-cp312-cp312-musllinux_1_2_riscv64.whl (747.3KiB)
regex-2026.3.32-cp312-cp312-musllinux_1_2_s390x.whl (832.0KiB)
regex-2026.3.32-cp312-cp312-musllinux_1_2_x86_64.whl (769.9KiB)
regex-2026.3.32-cp312-cp312-win32.whl (260.6KiB)
regex-2026.3.32-cp312-cp312-win_amd64.whl (271.5KiB)
regex-2026.3.32-cp312-cp312-win_arm64.whl (264.3KiB)
regex-2026.3.32-cp313-cp313-macosx_10_13_universal2.whl (478.9KiB)
regex-2026.3.32-cp313-cp313-macosx_10_13_x86_64.whl (285.1KiB)
regex-2026.3.32-cp313-cp313-macosx_11_0_arm64.whl (282.8KiB)
regex-2026.3.32-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (777.8KiB)
regex-2026.3.32-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (845.6KiB)
regex-2026.3.32-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (892.2KiB)
regex-2026.3.32-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (782.8KiB)
regex-2026.3.32-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (758.0KiB)
regex-2026.3.32-cp313-cp313-musllinux_1_2_aarch64.whl (767.5KiB)
regex-2026.3.32-cp313-cp313-musllinux_1_2_ppc64le.whl (840.5KiB)
regex-2026.3.32-cp313-cp313-musllinux_1_2_riscv64.whl (747.4KiB)
regex-2026.3.32-cp313-cp313-musllinux_1_2_s390x.whl (831.9KiB)
regex-2026.3.32-cp313-cp313-musllinux_1_2_x86_64.whl (770.0KiB)
regex-2026.3.32-cp313-cp313-win32.whl (260.6KiB)
regex-2026.3.32-cp313-cp313-win_amd64.whl (271.5KiB)
regex-2026.3.32-cp313-cp313-win_arm64.whl (264.3KiB)
regex-2026.3.32-cp313-cp313t-macosx_10_13_universal2.whl (482.9KiB)
regex-2026.3.32-cp313-cp313t-macosx_10_13_x86_64.whl (287.1KiB)
regex-2026.3.32-cp313-cp313t-macosx_11_0_arm64.whl (285.8KiB)
regex-2026.3.32-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (791.5KiB)
regex-2026.3.32-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (851.5KiB)
regex-2026.3.32-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (895.1KiB)
regex-2026.3.32-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (795.9KiB)
regex-2026.3.32-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (767.9KiB)
regex-2026.3.32-cp313-cp313t-musllinux_1_2_aarch64.whl (781.3KiB)
regex-2026.3.32-cp313-cp313t-musllinux_1_2_ppc64le.whl (845.5KiB)
regex-2026.3.32-cp313-cp313t-musllinux_1_2_riscv64.whl (754.4KiB)
regex-2026.3.32-cp313-cp313t-musllinux_1_2_s390x.whl (836.7KiB)
regex-2026.3.32-cp313-cp313t-musllinux_1_2_x86_64.whl (783.1KiB)
regex-2026.3.32-cp313-cp313t-win32.whl (263.6KiB)
regex-2026.3.32-cp313-cp313t-win_amd64.whl (274.7KiB)
regex-2026.3.32-cp313-cp313t-win_arm64.whl (266.0KiB)
regex-2026.3.32-cp314-cp314-macosx_10_13_universal2.whl (478.9KiB)
regex-2026.3.32-cp314-cp314-macosx_10_13_x86_64.whl (285.1KiB)
regex-2026.3.32-cp314-cp314-macosx_11_0_arm64.whl (283.0KiB)
regex-2026.3.32-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (778.0KiB)
regex-2026.3.32-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (846.2KiB)
regex-2026.3.32-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (891.4KiB)
regex-2026.3.32-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (782.1KiB)
regex-2026.3.32-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (758.1KiB)
regex-2026.3.32-cp314-cp314-musllinux_1_2_aarch64.whl (768.0KiB)
regex-2026.3.32-cp314-cp314-musllinux_1_2_ppc64le.whl (841.2KiB)
regex-2026.3.32-cp314-cp314-musllinux_1_2_riscv64.whl (747.5KiB)
regex-2026.3.32-cp314-cp314-musllinux_1_2_s390x.whl (831.5KiB)
regex-2026.3.32-cp314-cp314-musllinux_1_2_x86_64.whl (769.6KiB)
regex-2026.3.32-cp314-cp314-win32.whl (265.9KiB)
regex-2026.3.32-cp314-cp314-win_amd64.whl (274.6KiB)
regex-2026.3.32-cp314-cp314-win_arm64.whl (267.3KiB)
regex-2026.3.32-cp314-cp314t-macosx_10_13_universal2.whl (482.9KiB)
regex-2026.3.32-cp314-cp314t-macosx_10_13_x86_64.whl (287.1KiB)
regex-2026.3.32-cp314-cp314t-macosx_11_0_arm64.whl (285.8KiB)
regex-2026.3.32-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (791.7KiB)
regex-2026.3.32-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl (851.7KiB)
regex-2026.3.32-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl (895.3KiB)
regex-2026.3.32-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (795.7KiB)
regex-2026.3.32-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl (768.2KiB)
regex-2026.3.32-cp314-cp314t-musllinux_1_2_aarch64.whl (781.4KiB)
regex-2026.3.32-cp314-cp314t-musllinux_1_2_ppc64le.whl (845.6KiB)
regex-2026.3.32-cp314-cp314t-musllinux_1_2_riscv64.whl (754.5KiB)
regex-2026.3.32-cp314-cp314t-musllinux_1_2_s390x.whl (836.8KiB)
regex-2026.3.32-cp314-cp314t-musllinux_1_2_x86_64.whl (783.1KiB)
regex-2026.3.32-cp314-cp314t-win32.whl (269.3KiB)
regex-2026.3.32-cp314-cp314t-win_amd64.whl (279.0KiB)
regex-2026.3.32-cp314-cp314t-win_arm64.whl (269.2KiB)
regex-2026.3.32.tar.gz (405.9KiB)
No dependencies