Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Description

Searches for a specified string and returns a collection of type SearchMatch[].

C#
vb.net

Parameters

toMatch
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.

Examples

C#
vb.net
  • No labels