English 中文(简体)
代码相关的网络搜索
原标题:Code related web searches

有没有一种不去除标点符号的网络搜索方式?例如,我想搜索window.window->window(是的,我真的是这样做的,这是mozilla插件中的结构)。我想这一定是一个相当罕见的字符串。

不幸的是,Google、Bing、AltaVista、Yahoo和Excite都会剥夺标点符号,只展示任何包含“窗口”一词的内容。而且据Google称,在他们的网站上,至少目前没有办法避免这个问题。

一般来说,寻找代码段是难的,原因是什么?有人有什么提示吗?

问题回答

谷歌代码搜索("window.window->window",但似乎无法从此请求中获得任何相关结果)

互联网上有许多类似的工具,比如codase或koders,但我不确定它们是否允许您精确搜索此字符串。无论如何,它们可能对您有用,因此我认为值得一提。

编辑:很不可能找到通用搜索引擎可以让你搜索像“window.window->window”这样的东西,因为大多数搜索引擎在存储之前会对文档进行一些处理。例如,它们可能会在内部表示为单词的矢量(向量空间模型),并使用该模型进行搜索,而不是实际的原始字符串。创建这样的矢量首先要根据标点符号和其他动物割裂文档。这是一个非常复杂和有趣的主题,我无法告诉你更多。我的糟糕记忆在学校学习时做得相当不错!

BTW也可能在你的询问上做同样的处理。 您不妨阅读tf-idf。 多年来,这很可能是gle光,他的朋友们正在做些什么,但却能给你对你们的问候。

在主要的谷歌搜索引擎中,自己无法完成这项任务,正如你所发现的那样 - 但是,如果你正在寻找关于 Mozilla 的信息,最好的方法是更改你的搜索查询结构,如下所示:

"window.window->window" +Mozilla 
                     OR +XUL
                        + Another search string related to what you are 
                          trying to do.

SymbolHound是一个网络搜索引擎,可以从查询中保留标点符号。它可以搜索源代码仓库(比如现已停用的 Google Code Search),也可以搜索互联网上的特殊字符(主要是编程相关的网站,例如 StackOverflow)。

在此尝试: http://www.symbolhound.com

Tom(联合创始人)





相关问题
Using Regular expression to replace repetitive punctuation?

Here is a sentence like this: Happy birthday!! I have a good day. :) I want to know how to process these sentence using regular expression to the following formate: Happy birthday! I have a good ...

What is ` character called?

I feel silly for asking this but it isn t like I could google this. What is the ` character called? In case it doesnt show up, it is the character used for inline code with markdown. Also, on most ...

Solr: strip punctuation before index

I am having a problem with striping punctuation from the solr index When the punctuation sign follow right after a word then this word is not indexed properly. For example: if we index "hello, John", ...

emacs M-e doesn t work properly in tex-mode

I m using emacs and auctex to write LaTeX documents. For some reason, M-e doesn t move to the end of the sentence in tex-mode as it did when I went through the tutorial. It moves to the end of the ...

代码相关的网络搜索

有没有一种不删除标点符号的搜索方法?例如,我想搜索 window.window->window(是的,我确实想这样做,这是 mozilla 插件中的结构)。我想...

How to write a quomma

I d like to start using question marks at the end of clauses as well as sentences. To indicate this I would like to use a question mark with a comma underneath, which I d like to call a quomma. There ...

Using magic strings or constants in processing punctuation?

We do a lot of lexical processing with arbitrary strings which include arbitrary punctuation. I am divided as to whether to use magic characters/strings or symbolic constants. The examples should be ...

热门标签