I have a string as under
“=[Book1]Sheet1!$F$13”
The needed output being Book1
Is there any regular expression to do this?
Presently I am using string splitting to get the work done.
string input = "=[Book1]Sheet1!$F$13";
var res = input.Split('[')[1].Split(']')[0];
Thanks
If all you need is the Excel workbook’s name, this will do: