...
Description |
---|
Excerpt |
---|
Searches for a specified string and returns a collection of type SearchMatch[]. |
Signature | ||||
---|---|---|---|---|
| ||||
public virtual SearchMatch[] Search(System.String toMatch)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Overridable Function Search(ByVal toMatch As String) As SearchMatch()
{signature}
{parameters}
{param:toMatch}The string to find.{param}
{returns}A collection of [SearchMatch] objects.{returns}
{remarks}
The search string can be a literal, a regular expression, or a combination of both. Since the string can contain regular expressions, use a backslash to escape special characters. Special characters are {{[\ |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The string to find. |
Returns |
---|
A collection of SearchMatch objects. |
Remarks |
---|
The search string can be a literal, a regular expression, or a combination of both. Since the string can contain regular expressions, use a backslash to escape special characters. Special characters are . The collection this method returns implements the .NET IEnumerable interface that can be used to iterate over the search results. {remarks} {example}{code:csharp|title=C#} |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|