Monday, 19 August 2013

Python Regex: get everything except for string

Python Regex: get everything except for string

I have the following sentence:
Graft Concepts has partnered with\u00a0several sites\u00a0to offer
customization options for backplates, so customers will be able to design
their own with\u00a0
I'd like to get rid of all instances of "\u00a0", wether or not they are
connected to other words, e.g. "with\u00a0several"
How would I do this using regex with python? I've tried experimenting with
re.compile() and re.findall(), but I couldn't get this working?
Thanks.

No comments:

Post a Comment