Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
1 out of 2 rated this helpful - Rate this topic

Regex.IsMatch Method

Indicates whether the regular expression finds a match in the input string.

Overload List

Indicates whether the regular expression specified in the Regex constructor finds a match in the input string.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function IsMatch(String) As Boolean
[C#] public bool IsMatch(string);
[C++] public: bool IsMatch(String*);
[JScript] public function IsMatch(String) : Boolean;

Indicates whether the regular expression specified in the Regex constructor finds a match in the input string beginning at the specified starting position in the string.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Function IsMatch(String, Integer) As Boolean
[C#] public bool IsMatch(string, int);
[C++] public: bool IsMatch(String*, int);
[JScript] public function IsMatch(String, int) : Boolean;

Indicates whether the regular expression finds a match in the input string using the regular expression specified in the pattern parameter.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsMatch(String, String) As Boolean
[C#] public static bool IsMatch(string, string);
[C++] public: static bool IsMatch(String*, String*);
[JScript] public static function IsMatch(String, String) : Boolean;

Indicates whether the regular expression finds a match in the input string, using the regular expression specified in the pattern parameter and the matching options supplied in the options parameter.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function IsMatch(String, String, RegexOptions) As Boolean
[C#] public static bool IsMatch(string, string, RegexOptions);
[C++] public: static bool IsMatch(String*, String*, RegexOptions);
[JScript] public static function IsMatch(String, String, RegexOptions) : Boolean;

See Also

Regex Class | Regex Members | System.Text.RegularExpressions Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.