使用快捷鍵:CTRL+SHIFT+L
示例:我們有下面多條鏈接,現在我們需要將鏈接中的181、182...數字找出來,並替換成110;
http://test.baidu.com/paper/test/181/90689.html
http://test.baidu.com/paper/test/182/90688.html
http://test.baidu.com/paper/test/183/90687.html
http://test.baidu.com/paper/test/184/90686.html
http://test.baidu.com/paper/test/185/90685.html
http://test.baidu.com/paper/test/186/90684.html
http://test.baidu.com/paper/test/187/90683.html
http://test.baidu.com/paper/test/188/90682.html
http://test.baidu.com/paper/test/189/90681.html
http://test.baidu.com/paper/test/190/90680.html
- 第一步:按下CTRL+F 並在右上角啟用正則表達式 輸入匹配規則(這一步在解決本文的問題中,並不重要,重要的是第二步)
- 第二步:點擊界面空白處(這一步是為了不讓光標還在搜索框中),按下CTRL+SHIFT+L 快捷鍵
當我們要批量操作目標字符串時:在完成了查找這個過程后,如何全部選中目標是我們最關心的,(CTRL+SHIFT+L幫我們解決了這個問題),至於選中后我們是"復制(CTRL+C)"還是直接批量修改便不是問題了。