Why isn't my re.sub replacing the contents of my MS Word file?

scottcabit at gmail.com scottcabit at gmail.com
Wed May 14 10:40:33 EDT 2014


On Tuesday, May 13, 2014 4:26:51 PM UTC-4, MRAB wrote:
> 
> 0x96 is a hexadecimal literal for an int. Within a string you need \x96
> 
> (it's \x for 2 hex digits, \u for 4 hex digits, \U for 8 hex digits).

  Yes, that was my problem. Figured it out just after posting my last message. using \x96 works correctly. Thanks!





More information about the Python-list mailing list