I have a static class called DataHelper. It has a few methods, but all of them take a string literal (a stored procedure name) as a parameter, like so:
DataHelper.ExecuteProc("DBMaster.DatabaseConnections_SelectAll", null, CONN);
I would like lo go through a source file and extract the string portion of each of these calls. I am currently using:
DataHelper.*(?<=")(?:[^"]|"")*(?=")
but that matches the whole thing. Is there a way via regex to just get the string portion of the parameter list for this function?
(?<=DataHelper\.ExecuteProc\(")[^\\"]*(?:\\.[^\\"]*)*. See live demo here regex101.com/r/i3AgFx/1(?<=DataHelper\.\w+\(\s*")[^"\\]*(?:\\.[^"\\]*)*