Skip to content

Commit e8a8d28

Browse files
author
Matthew Barnett
committed
Git issue 539: Bug: Partial matching fails on a simple example
1 parent 6d086ff commit e8a8d28

File tree

7 files changed

+416
-616
lines changed

7 files changed

+416
-616
lines changed

README.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ Introduction
33

44
This regex implementation is backwards-compatible with the standard 're' module, but offers additional functionality.
55

6-
Note
7-
----
8-
9-
The re module's behaviour with zero-width matches changed in Python 3.7, and this module follows that behaviour when compiled for Python 3.7.
10-
116
Python 2
127
--------
138

@@ -327,22 +322,11 @@ Sometimes it's not clear how zero-width matches should be handled. For example,
327322

328323
.. sourcecode:: python
329324

330-
# Python 3.7 and later
331325
>>> regex.sub('.*', 'x', 'test')
332326
'xx'
333327
>>> regex.sub('.*?', '|', 'test')
334328
'|||||||||'
335329

336-
# Python 3.6 and earlier
337-
>>> regex.sub('(?V0).*', 'x', 'test')
338-
'x'
339-
>>> regex.sub('(?V1).*', 'x', 'test')
340-
'xx'
341-
>>> regex.sub('(?V0).*?', '|', 'test')
342-
'|t|e|s|t|'
343-
>>> regex.sub('(?V1).*?', '|', 'test')
344-
'|||||||||'
345-
346330
Added ``capturesdict`` (`Hg issue 86 <https://github.com/mrabarnett/mrab-regex/issues/86>`_)
347331
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
348332

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version: 2024.7.24
2+
3+
Git issue 539: Bug: Partial matching fails on a simple example
4+
15
Version: 2024.6.22
26

37
Git issue 535: Regex fails Unicode 15.1 GraphemeBreakTest due to missing new GB9c rule implementation

docs/Features.html

Lines changed: 307 additions & 321 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)