Live data from Hacker News

DuckDuckGo Regex Search

duckduckgo.com

31–36 of 36 posts

Re: DuckDuckGo Regex Search

#32

Earlier quoted context omitted.

Thank you. Can you explain what "?x:" does? Searching for regular expressions syntax (another thing this doesn't do) is quite tricky.

http://regex101.com/ tells me: >"x modifier: extended. Spaces and text after a # in the pattern are ignored" // The other explainers I had to hand failed and/or called it an error.

It depends on the flavor of regex being used. Try switching regex101 to JS or PY mode, and you'll see that the x modifier isn't supported.

Re: DuckDuckGo Regex Search

#33

Awwww. I hoped for a moment it was literally searching the web with a regex. Unfortunately no, although it may be a handy regex cheat sheet. Wake me when someone does this properly . It's only been done on a small scale or with very limited precomputed expressions, to my knowledge. Not many people would need it, but for those people it'd be insanely useful. But it's also insanely computationally hard - which means it…

Maybe I am missing out potential applications but I can't understand why I would like to search the entire web with a regex pattern? Find all strings that could be SSNs?

Re: DuckDuckGo Regex Search

#35
As all applications turn into web applications, all one-liners you should be able to knock out in the shell become search engine extensions.

I'm sure there's something positive in here if you look hard enough.

Re: DuckDuckGo Regex Search

#36

Awwww. I hoped for a moment it was literally searching the web with a regex. Unfortunately no, although it may be a handy regex cheat sheet. Wake me when someone does this properly . It's only been done on a small scale or with very limited precomputed expressions, to my knowledge. Not many people would need it, but for those people it'd be insanely useful. But it's also insanely computationally hard - which means it…

For 580$, you can still do it:

http://www.michaelnielsen.org/ddi/how-to-crawl-a-quarter-bil...

Post reply on HN