This now uses the new replacement string. Also tidy raw string literals and remove unnecessary escape characters from replacement attribute