24 May
2016
24 May
'16
10:36 p.m.
Xiang Zhang added the comment: I don't think no need to swap. The current doc is right.
re.findall(r'\W+', 'abcd123_#@@@@') ['#@@@@'] re.findall(r'\w+', 'abcd123_#@@@@') ['abcd123_']
It's apparent that \w match alphanumeric and \W vice versa. ---------- nosy: +xiang.zhang _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue27116> _______________________________________