Add regex replacement in renderer #358