Just try to compile the given regex. You can do that by creating the Regex object and passing the pattern to it. Here's a sample code:
public static bool IsRegexPatternValid(String pattern)
{
try
{
new Regex(pattern);
return true;
}
catch { }
return false;
}