Skip to content

bpo-42885: Optimize search for regular expressions starting with "\A" or "^" - #32021

Merged
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:re-search-at-beginning
Mar 22, 2022
Merged

bpo-42885: Optimize search for regular expressions starting with "\A" or "^"#32021
serhiy-storchaka merged 5 commits into
python:mainfrom
serhiy-storchaka:re-search-at-beginning

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

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

ruppde commented Mar 21, 2022

Copy link
Copy Markdown

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