IsMatch Method

Regex.IsMatch Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method IsMatch(String) Indicates whether the regular expression specified in the Regex constructor finds a match in the input string.
Public method IsMatch(String, Int32) 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.
Public method Static member IsMatch(String, String) Indicates whether the regular expression finds a match in the input string using the regular expression specified in the pattern parameter.
Public method Static member IsMatch(String, String, RegexOptions) 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.
Public method Static member IsMatch(String, String, RegexOptions, TimeSpan) Indicates whether the specified regular expression finds a match in the specified input string, using the specified matching options and time-out interval.
Top

Show:
© 2017 Microsoft