Method RXMatch.GroupNumberFromName(+ 1 overload)
Overload
Finds a named group and returns its 1-based index. Returns -1 if not found.
public int GroupNumberFromName(string groupName)
Parameters
groupName (string)
Group name.
In regular expression, to set name of group |
Returns
Exceptions
Remarks
If multiple groups have this name, prefers the first group that matched (RXGroup.Exists is true
).
See Also
Overload(top)
Finds a named group and returns its 1-based index. Returns -1 if not found.
public int GroupNumberFromName(string groupName, out bool notUnique)
Parameters
groupName (string)
Group name.
In regular expression, to set name of group |
notUnique (bool)
Receives |
Returns
Exceptions
Remarks
If multiple groups have this name, prefers the first group that matched (RXGroup.Exists is true
).