Regular expression that finds and replaces non-ascii characters with Python

Posted by prosseek on Stack Overflow See other posts from Stack Overflow or by prosseek
Published on 2010-05-03T14:54:44Z Indexed on 2010/05/03 14:58 UTC
Read the original article Hit count: 228

Filed under:
|

I need to change some characters that are not ASCII to '_'. For example,

Tannh‰user -> Tann_huser
  • If I use regular expression with Python, how can I do this?
  • Is there better way to do this not using RE?

© Stack Overflow or respective owner

Related posts about python

Related posts about regex