2 ms·
Tripping over the escaping rules is a continuing pain. GNU sed does things differently, using \| for the regex or operator. [0] It's fiddly enough to baffle the
by MaxBarraclough 6y ago
Tripping over the escaping rules is a continuing pain. GNU sed does things differently, using \| for the regex or operator. [0] It's fiddly enough to baffle the occasional StackOverflow answerer. [1]
[0] https://www.gnu.org/software/sed/manual/sed.html#BRE-syntax https://www.gnu.org/software/sed/manual/sed.html#BRE-syntax
[1] https://stackoverflow.com/a/6388042/ https://stackoverflow.com/a/6388042/