可能重複:
notepad++ Inverse Regex replace (all but string)正則表達式使用記事本++來排除線
比方說,我有以下...
http://whateverurl.com/is-not-wanted-but-it-is-here-anyway
http://icantbelieveibeenonthisallday.com/i-want-to-shoot-myself
http://hereiswhatireallywant.net/hey-there-sweet-thang
http://howsithangingloser.org/i-hope-someone-helps-you
http://heresanotherbeauty.net/that-i-want-to-be-all-up-in
我只想要查找的行那不包含「.net /」,所以我可以將它替換爲無,因此刪除。
我在網上搜索這個網站,發現(?!XXX)字符串, 所以我試圖做(?!網/) 但似乎記事本+ +不支持字符串 或者我可能會因爲我剛接觸RegEx而錯誤地使用它。
誰能告訴我如何找到排除Notepad ++中的某個字符串的行嗎?
可能重複? http://stackoverflow.com/q/8264391/1119381 –