I'm looking to pull data from some code, to do that I thought I could use regex.
An example of the code I have is:
If IsNumeric(varCS) And IsNumeric(varGTV) And IsNumeric(varTV) Then
logInfo("GO")
shtDst.Range("D6").Value = shtSrc.Cells(varCS, varGTV).Value
shtDst.Range("G104").Value = shtSrc.Cells(varCS, varTV).Value
I would like the result to be:
"D6"
"G104"
The regex I've tried is:
.*(?:Range\((.*)\))?.*
and replacing with:
\1
However this results in just blank lines.
I've looked at lookahead and lookbehind but those seem to require a fixed length string.
I've been using Notepad++ plus various online regex test sites to verify my results.