matchLength

Returns the longest matched pattern length for role, if any.