I've a string like "Colors: yellow, green, white". I need to get an array ("yellow", "green", "white") from it and it needs to be done with one regex.
I'm trying to apply something like
var result = Regex.Match("Colors: green, white, yellow", @":(\s(?<result>.*?)(,|$))*");
what I get is that result.Groups["result"]=="yellow"
How can I get all the other colors? May be there's another way to do this?