Python and Cyrillic characters in regular expression
phasma
xpahos at gmail.com
Thu Sep 4 10:42:47 EDT 2008
More information about the Python-list mailing list
Thu Sep 4 10:42:47 EDT 2008
- Previous message (by thread): Case-insensitive string compare?
- Next message (by thread): Python and Cyrillic characters in regular expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I'm trying extract all alphabetic characters from string.
reg = re.compile('(?u)([\w\s]+)', re.UNICODE)
buf = re.match(string)
But it's doesn't work. If string starts from Cyrillic character, all
works fine. But if string starts from Latin character, match returns
only Latin characters.
Please, help.
- Previous message (by thread): Case-insensitive string compare?
- Next message (by thread): Python and Cyrillic characters in regular expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list