I am trying to split a line into a key / value pair by using Regex. Can anyone give me a hint on how to split the line below properly?
The line looks like this:
"key"="some=value"
I'd like to split it into:
key
some=value
I have to read an string resource file, which looks like this:
"key1"="translation number one";
"key2"="translation number = the second number";
When I do a
string[] elements = Regex.Slit(line, "=");
I get 3 elements instead of the 2 I want. So basically I want to Split at the "=" outside the quotes