Moved replacements before regexp filter