Page MenuHomePhabricator

Codesearch search query format is unclear
Open, Needs TriagePublic

Description

It does not in any way follow from this view that the search query is allowed to be (and actually should be) a regular expression:

image.png (441×1 px, 38 KB)

E.g. on GitHub you need to wrap regexps into /.../. On Codesearch, this doesn't work, but bare queries are treated as regexps (so if you query col.rd, you get colord in your results).

Two more things unclear:

  1. Is there a way to search simple terms instead of regexps?
  2. And there are also different regexp formats. Which one does Codesearch use?