DNSGrep icon indicating copy to clipboard operation
DNSGrep copied to clipboard

No regular expressions?

Open LongJohnCoder opened this issue 6 years ago • 3 comments

Looking at the code, it doesn't appear to do regular expressions? It looks like it just does a binary search for something containing the string and finds other matches nearby.

The name seems to imply it should do something similar to the command 'grep', which if I recall was named from the g(lobal)/(regular expression)/p(rint) command sequence in ed. If it doesn't do grep, it probably shouldn't be called grep...

LongJohnCoder avatar Feb 11 '19 16:02 LongJohnCoder

I totally agree, I would suggest to rebrand this project to "DNSGREPLESS".

smiegles avatar Feb 11 '19 16:02 smiegles

To me, the name implied some fast way to do RE on large files. I was actually hoping to learn how it was done and was disappointed that it was just a binary search on a sorted file.

If anyone is interested in doing regular expressions on large data, I suggest Russ Cox's "How Google Code Search Worked" https://swtch.com/~rsc/regexp/regexp4.html

LongJohnCoder avatar Feb 12 '19 17:02 LongJohnCoder

That's fair enough

lc avatar Feb 12 '19 18:02 lc