I am trying to replace special characters by an underscore in a given string (a badly formatted file path) but I cannot get it to work.
How to write a python regular expression to find any two letters that appears at least twice in the string without overlapping, like xyxy (xy) or aabcdefgaa (aa) aaaa (aa) abcadb (ab), but not like aa
I have a list of tweets that looks like this: tweet_list = [\'Justin Reid has been non-existent today No showed after talking Send him back to Houston where he clearly belongs\', \'❌Refer to Native A
import re re.sub(\'[a-zA-Z0-9/*\\n\\u]\', \'\', string=\'\\n\\u3000\\u3000xyz\') error: File "<input>", line 2