3 ms·
1. Ag have nice editor integration. I would miss emacs helm-projectile-ag 2. Pcre is good regexp flavor to master. It is have good balance of speed, power and
by kozikow 10y ago
1. Ag have nice editor integration. I would miss emacs helm-projectile-ag
2. Pcre is good regexp flavor to master. It is have good balance of speed, power and popularity. In addition to Ag, there are accessible libraries in many languages, including python.
I think it would be good if everyone settled on Pcre, rather than each language thinking they will do regexps better.
- burntsushi 10y agoPCRE suffers from worst case exponential behavior, so it's not suitable for all tasks. For the most part, the syntax supported by ripgrep is a strict subset of the syntax supported by PCRE. But yes, I can agree that supporting PCRE can be considered an advantage if you use advanced features heavily (backreferences and lookaround come to mind).
- db48x 10y agoMeh. Back-references and lookaround both take too much brainpower to use at an interactive shell. I've used them few times in programs that I was writing, but just to find some text in some files on my disk? Never.
- pcwalton 10y ago> I think it would be good if everyone settled on Pcre, rather than each language thinking they will do regexps better. On the contrary, I think we can do better than a big pile of C code: https://www.cvedetails.com/vulnerability-list/vendor_id-3265/opdos-1/Pcre.html https://www.cvedetails.com/vulnerability-list/vendor_id-3265...