RegexCollection.IndexOf(Regex) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for the specified regular expression and returns the zero-based index of the first occurrence within the entire RegexCollection.
public:
int IndexOf(System::Text::RegularExpressions::Regex ^ value);
public int IndexOf (System.Text.RegularExpressions.Regex value);
abstract member IndexOf : System.Text.RegularExpressions.Regex -> int
Public Function IndexOf (value As Regex) As Integer
Parameters
- value
- Regex
The regular expression to locate in the RegexCollection.
Returns
The zero-based index of the first occurrence of value
within the entire RegexCollection, if found; otherwise, -1.