Python Regex: get everything except for string -


i have following sentence:

graft concepts has partnered with\u00a0several sites\u00a0to offer customization options backplates, customers able design own with\u00a0  

i'd rid of instances of "\u00a0", whether or not connected other words, e.g. "with\u00a0several"

how using regex python? i've tried experimenting re.compile() , re.findall(), couldn't working?

thanks.

you can use .replace:

s = s.replace('\\u00a0', ' ') 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -