'replace all with regex with spesify content

for simple example is when delete all console.log its easy way use vscode and search console.log.*$ using regex. but i have a string look like these

response.ok(res, "db_xx_model created", 1);

what i expected is can using regex with character (

look like response.ok(.*$ but i know these would invalid regex expression.

so how i can modified inside quota ( " " ) only.

response.ok(res, "i want modified these inside string only", 1);

other code maybe have more parameter so i want modif second parameter only .

response.ok(parameter1, "parameter2", 1);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source