I finally had time to write another blog post last night. This one is about ripgrep, a fantastic search tool by @burntsushi5:
Fast Searching with ripgrep
https://mariusschulz.com/blog/fast-searching-with-ripgrep …
Super useful when searching for code and when writing codemods!
-
-
Out of curiosity why would it be faster? Whats the optimisation that rg or its regex does in this case?
-
It's a little subtle. Basically, `-w` doesn't actually do `\bfoo\b`. It does `(^|\W)(foo)($|\W)` and reports matches for the inner capture group. This is slightly different semantics than using `\b` that actually end up being more convenient. (GNU grep does the same.)
- 1 more reply
New conversation -
-
-
Thanks, that’s good to know! :)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.