Replace pattern only on lines matching another pattern