Skip to content

Commit

Permalink
Git issue 539: Bug: Partial matching fails on a simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Barnett committed Jul 24, 2024
1 parent 6d086ff commit e8a8d28
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 616 deletions.
16 changes: 0 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ Introduction

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

Note
----

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.

Python 2
--------

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

.. sourcecode:: python

# Python 3.7 and later
>>> regex.sub('.*', 'x', 'test')
'xx'
>>> regex.sub('.*?', '|', 'test')
'|||||||||'

# Python 3.6 and earlier
>>> regex.sub('(?V0).*', 'x', 'test')
'x'
>>> regex.sub('(?V1).*', 'x', 'test')
'xx'
>>> regex.sub('(?V0).*?', '|', 'test')
'|t|e|s|t|'
>>> regex.sub('(?V1).*?', '|', 'test')
'|||||||||'

Added ``capturesdict`` (`Hg issue 86 <https://github.com/mrabarnett/mrab-regex/issues/86>`_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version: 2024.7.24

Git issue 539: Bug: Partial matching fails on a simple example

Version: 2024.6.22

Git issue 535: Regex fails Unicode 15.1 GraphemeBreakTest due to missing new GB9c rule implementation
Expand Down
628 changes: 307 additions & 321 deletions docs/Features.html

Large diffs are not rendered by default.

Loading

0 comments on commit e8a8d28

Please sign in to comment.