Solution 1:
You could do a regex split on the pattern COMPONENT(?!_)
:
string[] splitComponents(string a)
{
return Regex.Split(a, @"COMPONENT(?!_)");
}
You could do a regex split on the pattern COMPONENT(?!_)
:
string[] splitComponents(string a)
{
return Regex.Split(a, @"COMPONENT(?!_)");
}