in reply to problem in substitution

If you want to enable the pattern meta characters in the regular expression again, you can use \E (\Q will disable pattern metacharacters till \E.)