GetMatches Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

Syntax

'Declaration
Public Function GetMatches ( _
    search As String _
) As String()
public string[] GetMatches(
    string search
)
public:
array<String^>^ GetMatches(
    String^ search
)
member GetMatches : 
        search:string -> string[] 
public function GetMatches(
    search : String
) : String[]

Parameters

Return Value

Type: array<System. . :: . .String> [] () [] []
A collection of the objects found by the search.

.NET Framework Security

See Also

Reference

Regex Class

GetMatches Overload

System.Text.RegularExpressions Namespace