Sateesh Kumar <sateeshkum...@gmail.com> added the comment:

@SilentGhost, You are right, when I pass the flag "re.IGNORECASE" for example 
in Variant-2 the python process do gets stuck.  

Here is the revised code for Variant-2:

* Variant-2
%cat match.py
import re
pattern = 
"^[_a-z0-9-]+([\.'_a-z0-9-]+)*@[a-z0-9]+([\.a-z0-9-]+)*(\.[a-z]{2,4})$"
val = "Z230-B900_X-Suite_Migration_Shared_Volume"
re.match(pattern, val, re.IGNORECASE)

~/workbench$ python match.py 
^^^ The interpreter gets stuck.

Thanks for the correction. I have also modified the title of this issue 
accordingly.

----------
title: Interpreter gets stuck while applying a compiled regex pattern -> 
Interpreter gets stuck while applying a regex pattern

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35932>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to