Returns the number of capturing groups in this matcher's pattern. Group zero denotes the entire pattern and is excluded from this count. @return the number of capturing groups in this pattern
()
| 321 | * @return the number of capturing groups in this pattern |
| 322 | */ |
| 323 | public int groupCount() { |
| 324 | return re2.numberOfCapturingGroups(); |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * Return a map of the capturing groups in this matcher's pattern, where key is the name and value |