Extract Text from string

Hi all.

I have sample text like c:\documents\project{year\month} or c:\documents\project{year\month}\data

From the above text I need to extract only {year\month}. Can anyone please help with string function on how to extract it. Thank you in advance.

Check this below code, @shankar.aa1993
StringVariable = System.Text.RegularExpressions.Regex.Matches(“c:\documents\project{year\month}\data”,"{[A-z]+}")(0).ToString

1 Like