如何删除记事本++中特定字符前的所有字符

时间:2016-03-19 19:47:19

标签: search replace notepad++

我有这个文字

http://webcache.googleusercontent.com/search?num=100&hl=en&prmdo=1&q=cache:RZTSZuXeAgIJ:https://twitter.com/okkymintaraga+site:twitter.com+emptiness&&ct=clnk

我想删除https://twitter.com

之前的所有文字

我该怎么做?

感谢

2 个答案:

答案 0 :(得分:0)

打开Notepad ++,CTRL + H,put:

http://webcache.googleusercontent.com/search?num=100&hl=en&prmdo=1&q=cache:RZTSZuXeAgIJ

...在"找到什么"并离开"替换为"空白,单击"替换"。

这是一个棘手的问题吗?

答案 1 :(得分:0)

你可以这样做:

  • 控制 + ħ
  • 找到:var _sortByTerm = function (data, key, term) { return data.sort(function (a, b) { return a[key].indexOf(term) < b[key].indexOf(term) ? -1 : 1; }); };
  • 替换为:^.+(?=https://twitter\.com)
  • Clic on 替换

确保您已查看NOTHING

这将在一行中替换Regular Expression之前的所有内容。

https://twitter.compositive look ahead