I run several substitution commands as the core of a colorize script for maven. One of the sed commands uses a regular expression which works find in the shell
sed
If the -r/--regexp-extended option is not provided, then the capturing parentheses must be escaped.
-r
--regexp-extended