I’m trying to find all var.AppendLine("..."); and replace them with Append("...\n");
Been fooling around with regex’s but don’t seem to get anywhere. Anyone has a suggestion on what regular expression to use here?
var can be a variable name and I need to select the ... for replace with Append("$1\n");
I assume you actually don’t want to get rid of
var:Search:
<{[a-zA-Z0-9]+}.AppendLine\("{[^"]+}"\)Replace with:
\1.Append("\2\\n")