Typo容忍文本搜索?

问题描述 投票:0回答:1

我想在文本文档中搜索example也可以找到:

  • Exomplo
  • Eyanple
  • rxsmple

Test应匹配:

  • Twsz
  • 测试

What are ways to search text documents using typo-tolerance?

text typography
1个回答
1
投票

有一个名为agrep”.的软件 它代表“近似 - GNU正则表达式程序”,但默认情况下它不是Linux发行版的一部分,尽管在官方软件包存储库中可用。 您可以通过在终端中键入sudo apt install -y agrep立即下载并安装它。

手册man grep提到“变体程序egrep,fgrep和rgrep分别与grep -E,grep -F和grep -r相同。这些变体已弃用,但是为了向后兼容而提供。“ 由于上述原因,agrep不是这种情况(在Linux中不排除)。

你可以在it's Wikipedia page.上了解更多相关信息

© www.soinside.com 2019 - 2024. All rights reserved.