replace each occurrence of the pattern '(http://\\s+|\\s*[^\\w\\s]\\s*)' within `a` with '',"re.sub('(http://\\S+|\\S*[^\\w\\s]\\S*)', '', a)"