Indicates whether the regular expression specified in the System.Text.RegularExpressions.Regex constructor finds a match in a specified input string.
true if the regular expression finds a match; otherwise, false.
The erload:System.Text.RegularExpressions.Regex.IsMatch method is typically used to validate a string or to ensure that a string conforms to a particular pattern without retrieving that string for subsequent manipulation. If you want to determine whether one or more strings match a regular expression pattern and then retrieve them for subsequent manipulation, call the erload:System.Text.RegularExpressions.Regex.Match or erload:System.Text.RegularExpressions.Regex.Matches method.
The System.Text.RegularExpressions.RegexMatchTimeoutException exception is thrown if the execution time of the matching operation exceeds the time-out interval specified by the Regex.#ctor(string, RegexOptions, TimeSpan) constructor. If you do not set a time-out interval when you call the constructor, the exception is thrown if the operation exceeds any time-out value established for the application domain in which the System.Text.RegularExpressions.Regex object is created. If no time-out is defined in the System.Text.RegularExpressions.Regex constructor call or in the application domain's properties, or if the time-out value is Regex.InfiniteMatchTimeout, no exception is thrown.