My program parses an XML-File which contains paths. Now I need to parse special folders like Appdata on different Windows devices:
<entry path="C:\Users\Simon\AppData\Roaming\myprogram" />
My attempt is to change the line into:
<entry path="#{APPDATA}\myprogram" />
and parse it using a Regular Expression:
string pattern = "#{ * }"; // what does fit here?
I've read some tutorials one Regex but I just can't figure out which Regex fits here.
How can I get the content between #{ and } using a regular Expression?
string.Replacewould do the job