Hi everyone,
I'm developing some code that will hopefully match one of the strings
stored in an array:
String [] attrTypes = {"/SCEQUIPMENT/", "/SCOINSTRUMENT/", "/SCPLIN/",
"/SCHVAC/", "/SCCAB/", "^(/EQUIPMENT/)", "/PIPE/", "^(/HVAC/)"};
for (int i=0; i<8; i++)
{
Match m = Regex.Match( args[0].ToString(), attrTypes[i] );
// args[0] is an input string and contains (eg)
"SCEQUIPMENT (unfiltered)" etc.
if (m.Success)
{
but I never reach any of the code after m.Success. Can anyone please
suggest a solution?
TIA
Trev