【问题标题】:How to remove all characters standing before a specific character in notepad ++如何删除记事本++中特定字符之前的所有字符
【发布时间】:2016-07-06 12:07:03
【问题描述】:

我有这段文字

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之前的所有文字

我该怎么做?

谢谢

【问题讨论】:

    标签: search replace notepad++


    【解决方案1】:

    你可以这样做:

    • Ctrl+H
    • 查找内容:^.+(?=https://twitter\.com)
    • 替换为:NOTHING
    • 点击替换

    确保您已检查Regular Expression

    这将在一行中替换 https://twitter.com 之前的所有内容。

    (?=https://twitter\.com)positive look ahead

    【讨论】:

      【解决方案2】:

      打开记事本++,CTRL+H,放:

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

      ...在“查找内容”中,将“替换为”留空,点击“替换”。

      这是一个棘手的问题吗?

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-04-16
        • 2015-09-05
        • 2015-01-26
        • 2014-06-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-10-15
        相关资源
        最近更新 更多