python and regular expression with unicode

Posted by bsn on Stack Overflow See other posts from Stack Overflow or by bsn
Published on 2008-12-26T14:40:04Z Indexed on 2010/06/02 11:33 UTC
Read the original article Hit count: 137

Filed under:
|

I need to delete some unicode symbols from the string '?????? ??????? ???????????? ??????????'

I know they exist here for sure. I try:

re.sub('([\u064B-\u0652\u06D4\u0670\u0674\u06D5-\u06ED]+)', '', '?????? ??????? ???????????? ??????????')

but it doesn't work. String stays the same. ant suggestion what i do wrong?

© Stack Overflow or respective owner

Related posts about python

Related posts about regex