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
- search
Type: System. . :: . .String
The string to search for a match.
Return Value
Type: array<System. . :: . .String> [] () [] []
A collection of the objects found by the search.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.