I want to extract anything between two colon's (inclusive of the colon's) in an arbitrary input using C#. Given
String input = "a:one:b:two:c:three:d";
I want
{string[3]}
[0]: ":one:"
[1]: ":two:"
[2]: ":three:"
Using
String[ ] inverse = Regex.Split( input, ":.*?:" );
I get the opposite of what I want...
{string[4]}
[0]: "a"
[1]: "b"
[2]: "c"
[3]: "d"
How can I inverse this or is there something more suitable than Regex.Split in this situation?