#ripgrep is awesome: I just checked for all usages of >200 property-keys as string-literals in >2 million LOC in less than 5 minutes.
You don't need to escape anything. See my last tweet where I suggested using the -f/--file flag. You can just put all your identifiers in a file, one per line. Then use `rg -f that-file some/file/or/directory` and you're done. The trickier bit is the sed command.
-
-
for i in <identifiers>; do echo <escaped version of "[\"'\[]$(echo
$i | sed 's/\./\./g')[\"'\]]"> > searches-file; done rg -f searches-file … ? (how do I find out which search failed?)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
How do I put the required quoting around the identifiers? (one of " ' [] or {}) — replacing the . in identifiers by \. in the identifiers-file to avoid treating it as part of the regexp isn’t hard.
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.