My sed command works when I try to replace a single pattern.
sed -i '' 's/^\(feature\)/replacement/g' change.md
It doesn’t do anything when the regex is a group.
sed -i '' 's/^\(feature\|bug\|security\)/replacement/g' change.md
Does anyone know what I'm doing wrong? I tried a number of variations, but none seem to work.
My file:
## Features
feature:foo
feature: baz
## Bugs
bug: bar
bug: KK