The string is from a nodes (NodeFactory) property "bodyText".
I want to get a list of KeyValuePair<string, string> where the key is the first part and value is the second part. An example would be:
Key: redirectto Value: /sagen.aspx
Key: loginpage Value: /Login.aspx
Key: macroAlias Value: BrowserValidation
Im thinking of using regular expressions but to be honest I don't where to start. I know I can use \"(.*?)\" to get the values, but I don't know how to get the keys.
Umbraco macro string into KeyValuePair
I have a string that looks like this:
The string is from a nodes (NodeFactory) property "bodyText".
I want to get a list of
KeyValuePair<string, string>
where the key is the first part and value is the second part. An example would be:Im thinking of using regular expressions but to be honest I don't where to start. I know I can use
\"(.*?)\"
to get the values, but I don't know how to get the keys.is working on a reply...