Export (0) Print
Expand All

Regex.Matches Method

Searches an input string for all occurrences of a regular expression and returns all the successful matches as if Match were called numerous times.

Overload List

Searches the specified input string for all occurrences of a regular expression.

Supported by the .NET Compact Framework.

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

Searches the specified input string for all occurrences of a regular expression, beginning at the specified starting position in the string.

Supported by the .NET Compact Framework.

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

Searches the specified input string for all occurrences of the regular expression specified in the pattern parameter.

Supported by the .NET Compact Framework.

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

Searches the specified input string for all occurrences of the regular expression supplied in a pattern parameter with matching options supplied in an options parameter.

Supported by the .NET Compact Framework.

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

See Also

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

Show:
© 2014 Microsoft