Visitar URL original
bpo-42885: Optimize search for regular expressions starting with "\A" or "^" by serhiy-storchaka · Pull Request #32021 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20251017171027/https://github.com/python/cpython/pull/32021
Skip to content

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Mar 21, 2022 •

Affected functions are re.search(), re.split(), re.findall(), re.finditer()
and re.sub().

https://bugs.python.org/issue42885

@serhiy-storchaka serhiy-storchaka added type-feature A feature request or enhancement performance Performance or resource usage labels Mar 21, 2022
… or "^"

Affected functions are re.search(), re.split(), re.findall(), re.finditer()
and re.sub().
@ruppde
Copy link

ruppde commented Mar 21, 2022

great! fixes the problem for me, thanks

@serhiy-storchaka serhiy-storchaka merged commit 492d410 into python:main Mar 22, 2022
@serhiy-storchaka serhiy-storchaka deleted the re-search-at-beginning branch March 22, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants