private void ShowRegExpMatcherError(IMatcher matcher) { string errMsg = String.Format("Invalid regular expression", matcher.ErrorMessage()); MessageBox.Show(this, errMsg, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); }