string strmatch = string.Empty; string strPattern = string.Empty; Regex rxPattern = null; MatchCollection Mcoll = null; strPattern = GetEmailPattern(); if (strPattern.Trim() != "") { rxPattern = new Regex(strPattern, RegexOptions.Compiled); Mcoll = rxPattern.Matches(strResumeContent); foreach (Match rxMatch in Mcoll) { strmatch = rxMatch.Value.ToString().Trim(); if (strmatch != string.Empty && ValidateEmail(strmatch) == true && !IsExistEmailId(strmatch)) { procMyApp_DisplayFiles(strmatch, strFileWithPath); //Application.DoEvents(); procMyApp_StatusMsg("\\ ... " + strFileWithPath, vsfDisplayEmaillAddress.Rows.Count.ToString(),mlngFileCount); } }
evergreen501 wrote:string strPattern = string.Empty; ... rxPattern = new Regex(strPattern, RegexOptions.Compiled);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)