【问题标题】:BBEdit 13: Extract function within Text FactoryBBEdit 13:文本工厂中的提取功能
【发布时间】:2020-04-27 13:24:14
【问题描述】:

BBEdit 13 中的新文本工厂。

我知道如何在“查找和替换”窗口中按下 EXTRACT 按钮,但不知道如何将提取作为文本工厂中的步骤之一。

有可能吗?

【问题讨论】:

    标签: grep bbedit


    【解决方案1】:

    从 BBEdit 13.1 开始,这可以在文本工厂中使用“删除不匹配的文本”步骤来完成。借用变更说明:

    This operation works similarly to using the Extract button
    in the Find window; but rather than creating a new document with
    the extracted text, the document's contents are **replaced** with
    the results.
    
    Thus, using this operation will delete any text which was **not**
    matched by the search string (or pattern), and the remaining text in
    the document will consist of all matches of the search string (or
    pattern), separated by line breaks. As with the Extract operation,
    this is not terribly useful for literal matches, but quite powerful
    when using Grep and a suitable replacement pattern.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-18
      • 2013-11-27
      • 1970-01-01
      • 2014-03-29
      • 1970-01-01
      相关资源
      最近更新 更多