我想刪除 URL/電子郵件地址中的所有空格。地址在“普通”字符串中,例如:"Today the weather is fine. Tomorrow, we'll see. More information: www.weather .com or info @weather.com"我正在尋找一個好的正則表達式(使用rePython的模塊),但我的版本無法處理所有情況re.sub(u'(www)([ .])([a-zA-Z\-]+)([ .])([a-z]+)', '\\1.\\3.\\5')
添加回答
舉報
0/150
提交
取消