Perform the replacement in quickfix.