是否有支持正则表达式搜索的搜索引擎? [英] Is there a search engine that support regular expression search?

查看:56
本文介绍了是否有支持正则表达式搜索的搜索引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我检查了这个问题answer 指的是过时的服务.

First, I checked this question but the answer refers to an obsolete service.

那么是否有基于网络的(或软件,我不在乎)提供正则表达式搜索互联网内容?

So is there a web-based (or software, I don't care) that provide searching internet content with regular expression?

推荐答案

让我在这里写一个来自 superuser.com 的答案 问题 由于我完全支持作者:

Let me write here an answer from the superuser.com question due to my complete solidarity with the author:

引用自 询问元过滤器:

使关键字搜索效率超过数百 TB(或目前的任何索引)的唯一可能方法是预先计算单词索引.

The only possible way to make keyword searching efficient over hundreds of terabytes (or whatever their index is up to these days) is to precompute an index of words.

事实上,一个完整的正则表达式引擎是图灵完备的,您可以编写任意的正则表达式,这些正则表达式将吞噬几乎无限量的 CPU 时间和内存.由于所有这些原因,他们向公众提供正则表达式搜索将是技术上的疯狂.

In fact a full regex engine is turing-complete, and you can write arbitrary regexps that will gobble up near infinite amounts of CPU time and memory. For all these reasons it would be technical insanity for them to offer regex searching to the general public.

更新:正如它正确指出的那样,正则表达式不是图灵完备的.请继续关注更详细的答案:

Update: as it rightfully pointed out, regexp is not Turing Complete. Stay tuned for the more detailed answer:

待定...

这篇关于是否有支持正则表达式搜索的搜索引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆