private void RegexPatternMatcher_PatternChanged(object sender, EventArgs e)
{
const RegexOptions options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.Singleline;
regEx = new Regex(string.Format(@"\G({0})",pattern), options);
}
}