private bool IsValidRegexp(string text)
{
try
{
new Regex(text);
}
catch (Exception ex)
{
MessageBox.Show(Properties.Resources.ButtonOK_ClickText3 + ex.Message, Properties.Resources.ButtonOK_ClickText2, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return false;
}
return true;
}