我有这个文字
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
我该怎么做?
感谢
答案 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)
确保您已查看NOTHING
。
这将在一行中替换Regular Expression
之前的所有内容。
https://twitter.com
是positive look ahead。