use ReplacesRegexp where necessary