List<string> ListOfGlobalTables = new List<string>(); string selectpart="SELECT Summary_New.ServiceName AS '[Q1].[ServiceName]'" ListOfGlobalTables.Add("Summary"); ListOfGlobalTables.Add("Summary_New"); foreach (string item in ListOfGlobalTables) { string tableNamePlusDot = item + "."; int count = Regex.Matches(selectpart, tableNamePlusDot).Count; // just think what count should return }
string tableNamePlusDot = item + ".";
int count = Regex.Matches(selectpart, tableNamePlusDot).Count;
'\.'
string tableNamePlusDot = item + @"\.";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)