[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


New submission from Ramzi Trabelsi :

parsing emails from this text took forever and never ends. Here the code 
 and the file res.html is attached.
The Behavior is same on Windows 10, 11 and Ubuntu 18.04

CODE:

import re
pattern_email  = r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]{2,3}"
with open("res.html","r",encoding="utf-8") as FF:
TEXT = FF.read()
matched_email  = re.findall(pattern_email,TEXT)

--
components: macOS
files: res.zip
messages: 408453
nosy: ned.deily, ramzitra, ronaldoussoren
priority: normal
severity: normal
status: open
title: re.findall takes forever and never ends
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file50488/res.zip

___
Python tracker 
<https://bugs.python.org/issue46065>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


Change by Ramzi Trabelsi :


--
components:  -macOS

___
Python tracker 
<https://bugs.python.org/issue46065>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


Ramzi Trabelsi  added the comment:

thanks for the answer. Is there any workaround for this ?

--

___
Python tracker 
<https://bugs.python.org/issue46065>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com