[Visual Basic] Overloads Public Function IsMatch( _ ByVal input As String _ ) As Boolean [C#] public bool IsMatch( string input ); [C++] public: bool IsMatch( String* input ); [JScript] public function IsMatch( input : String ) : Boolean;
These methods are exactly equivalent to (Regex.Match(?).Success). They are supplied for convenience, since a common usage of regular expressions is simply to test the presence of a match and disregard the details.
The static methods are equivalent to constructing a Regex with the specified pattern and calling the instance method IsMatch. The static methods are provided for convenience to allow an isolated, single use of a regular expression without explicitly creating a Regex object.
Regex Class | Regex Members | System.Text.RegularExpressions Namespace | Regex.IsMatch Overload List