sd
sd copied to clipboard
Use something other than `$` for capture group prefix
$ is good in programming languages, but interacts badly with shells. Disambiguation of numbered capture groups goes even further, as ${} is also a shell construct.
% might be a good choice.
What’s wrong with backslashes, like ‘sed’?
What’s wrong with backslashes, like ‘sed’?
It's the start of escape sequences, and I can never remember what exactly are escaped and how, so tend to avoid it.