如何使用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