public int indexOf ( String groupName , int index ) { int idx = - 1 ; if ( groupInfo . containsKey ( groupName ) ) { List < GroupInfo > list = groupInfo . get ( groupName ) ; idx = list . get ( index ) . groupIndex ( ) ; } return idx ; }
Gets the group index of a named capture group at the specified index . If only one instance of the named group exists use index 0 .