javascript – Create regex to find text between quotation marks, for this function

feedbackResultToast(false, result.error || "some text some text");
feedbackResultToast(false, "some text some text");
feedbackResultToast(false, result.error || "some text some text", true);
feedbackResultToast(false, result.error || `some text some text`);

I have this function(feedbackResultToast) inside my js file, I need to match them, and take only the text group between ” or ‘ or ` .
The regex should be written in c# .NET

I tried to do regex in c# .NET, but I can’t finish it,
currently my regex:

^\s*feedbackResultToast\([^,]*, (?:result\.error \|\| )?([""'`].*[""'`])?,?[^,]*\);

For example, my regex, matched also this piece of code, that is not right

if (data.action== "edit") {

or

textBtnModal: "Add",

Read more here: Source link