[issue18190] RuntimeError raised with re.search + re.DOTALL on empty string

2013-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report. This is a duplicate of issue17998. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> internal error in regular expression engine ___

[issue18190] RuntimeError raised with re.search + re.DOTALL on empty string

2013-06-11 Thread Matthew Barnett
Matthew Barnett added the comment: Also in Python 3.3.2, but not Python 3.2. I haven't tested Python 3.3.1 or Python 3.3.0. -- versions: +Python 3.3 ___ Python tracker ___ _

[issue18190] RuntimeError raised with re.search + re.DOTALL on empty string

2013-06-11 Thread Harry Bock
New submission from Harry Bock: In Python 2.7.5, running re.search on regular expressions beginning with '.+' will raise RuntimeError if: * the string being matched is empty * the flags include re.DOTALL/re.S >>> re.search(".+a", "", flags=re.S) File "C:\Python27\lib\site-packages\IPython\c