Regex.getMaxBackref

Returns the number of the highest back reference in the pattern, or 0 if the pattern does not contain back references. Since 2.14

class Regex
int
getMaxBackref
()

Return Value

Type: int

the number of the highest back reference

Meta