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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -