➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sateesh Kumar
Recipients Sateesh Kumar, SilentGhost, ezio.melotti, mrabarnett, remi.lapeyre
Date 2019-02-07.22:44:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549579454.95.0.686425483694.issue35932@roundup.psfhosted.org>
In-reply-to
Content
@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.
History
Date User Action Args
2019-02-07 22:44:16Sateesh Kumarsetrecipients: + Sateesh Kumar, ezio.melotti, mrabarnett, SilentGhost, remi.lapeyre
2019-02-07 22:44:14Sateesh Kumarsetmessageid: <1549579454.95.0.686425483694.issue35932@roundup.psfhosted.org>
2019-02-07 22:44:14Sateesh Kumarlinkissue35932 messages
2019-02-07 22:44:14Sateesh Kumarcreate