How can I extract the following from the source string that uses line continuation character “_” using Regex. Note, the line continuation character must be the last character on that line. Also, the search should start from the end of the string and terminate at the first “(” encountered. That’s because I am only interested what’s happening at the end of the text.
Wanted Output:
var1, _
var2, _
var3
Source:
...
Func(var1, _
var2, _
var3
Try this
Explanation