Bugs item #1285809, was opened at 2005-09-09 09:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1285809&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: ChristianJ (cybb20) Assigned to: Nobody/Anonymous (nobody) Summary: re special sequence '\w' Initial Comment: >>> rexp = re.compile('\w', re.LOCALE) >>> rexp.findall('_') ['_'] >>> '_'.isalnum() False While the Python docs say, that the underscore is supported, I strongly ask why this is so? The problem is that I want to match a sequence of alphanumeric characters but excluding the underscore. If you defined \w to not support "_" anymore, people could easily check for the "_" as well with \w|_ . My locale is "de_DE" but it does affect other locales as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1285809&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com