Seen in the wild: replace all the newlines with a literal $ in sed:
sed -e 's/$/$/'
It's always bugged me that regex replace syntax looks similar to regex, occurs close to the search syntax, but actually has a different meaning. It's harder to read.
A significant part of development practice is trying to work out "should I manually change this, or should I write a complex editor macro / sed/awk script / program using an AST and refactoring library?".
It's easy to make the wrong decision in both directions IME.