Sample data: !!Part|123456,ABCDEF,ABC132!!
The comma delimited list can be any number of any combination of alphas and numbers
I want a regex to match the entri
You can either use split:
string csv = tag.Substring(7, tag.Length - 9);
string[] values = csv.Split(new char[] { ',' });
Or a regex:
Regex csvRegex = new Regex(@"!!Part\|(?:(?\w+),?)+!!");
List valuesRegex = new List();
foreach (Capture capture in csvRegex.Match(tag).Groups["value"].Captures)
{
valuesRegex.Add(capture.Value);
}