Returns the program size of this pattern. Similar to the C++ implementation, the program size is a very approximate measure of a regexp's "cost". Larger numbers are more expensive than smaller numbers. @return the program size of this pattern
()
| 311 | * @return the program size of this pattern |
| 312 | */ |
| 313 | public int programSize() { |
| 314 | return re2.numberOfInstructions(); |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Returns the number of capturing groups in this matcher's pattern. Group zero denotes the entire |