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
I think the RegEx you are looking for is this:
(?:^!!PART\|){0,1}(?.*?)(?:,|!!$)
This can then be run like this
string tag = "!!Part|123456,ABCDEF,ABC132!!";
string partRegularExpression = @"(?:^!!PART\|){0,1}(?.*?)(?:,|!!$)";
ArrayList results = new ArrayList();
Regex extractNumber = new Regex(partRegularExpression, RegexOptions.IgnoreCase);
MatchCollection matches = extractNumber.Matches(tag);
foreach (Match match in matches)
{
results.Add(match.Groups["value"].Value);
}
foreach (string s in results)
{
Console.WriteLine(s);
}