better regexp replace mode