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
Post a Comment