Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns (alternate version). #4678

Closed

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 2, 2017

Also fixed searching patterns that could match an empty string.

This will fix bpo-852532, bpo-1647489, bpo-3262, bpo-25054, and maybe others.

The difference with #4471 is that in findall() and finditer() empty matches are included in the result only when not adjacent to a previous match for consistency with split() and sub().

https://bugs.python.org/issue25054

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error type-feature A feature request or enhancement labels Dec 2, 2017
@serhiy-storchaka serhiy-storchaka deleted the re-search-zerowidth-alt branch January 4, 2018 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge type-bug An unexpected behavior, bug, or error type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants