如何使用Notepad ++從文件中的所有URL找到並刪除utm_content
參數?如何修剪以特定表達式開頭的字符串?
的樣本數據:
http://example.com/content1.html?utm_content=product1
http://example.com/abc2.html?utm_content=homepage
http://example.com/test/?utm_content=sku1234
http://example.com/runapp?utm_content=31231KS
http://example.com/blabla?utm_content=nl-laptops-tablets
期望的結果:
http://example.com/content1.html
http://example.com/abc2.html
http://example.com/test/
http://example.com/runapp
http://example.com/blabla
注:根據我的理解記事本+ +正則表達式使用標準PCRE(的Perl)的語法。
問題在哪裏? – 2012-04-19 13:45:38
編輯了這個問題,謝謝! – Bogdan 2012-04-19 13:50:44
這不是一個編程問題,因爲你只是在處理文本編輯器;因此我相信它屬於超級用戶。 – 2012-04-19 13:52:16