import re print(re.findall(r'\w', 'a1٤4')) print(re.findall(r'\w', 'a1٤4', flags = re.UNICODE))
Standard input is empty
['a', '1', '4'] ['a', '1', '\xd9', '4']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!