fork download
  1. import re
  2. regex = r"https?:[a-zA-Z0-9_.+-/#~]+ "
  3. article = "眼影盤長這樣 http://i...content-available-to-author-only...r.com/uxvRo3h.jpg 說真的 很不好拍"
  4. result = re.sub(regex, "", article)
  5. print (result)
  6.  
Success #stdin #stdout 0.02s 9456KB
stdin
Standard input is empty
stdout
眼影盤長這樣 說真的 很不好拍