2 ms·
Regex support is amazing to have in a search engine too... For example, paste in an email address validating regex: https://cs.chromium.org/search/?q=%5Cb%5B
by londons_explore 8y ago
Regex support is amazing to have in a search engine too... For example, paste in an email address validating regex:
https://cs.chromium.org/search/?q=%5Cb%5BA-Z0-9._%25%2B-%5D%2B@%5BA-Z0-9.-%5D%2B%5C.%5BA-Z%5D%7B2,%7D%5Cb&sq=package:chromium&type=cs https://cs.chromium.org/search/?q=%5Cb%5BA-Z0-9._%25%2B-%5D%...
Considering that one can't 'index by regex', I wonder how the backend works - does it actually run the regex against every source code line in the repository in a few hundred milliseconds? Sounds expensive! They must have thousands of machines! Maybe thats why they don't have a public codesearch tool for the whole internet...