Matches the input against the pattern (unanchored). The search begins at the end of the last match, or else the beginning of the input. If there is a match, find sets the match state to describe it. @return true if it finds a match
()
| 337 | * @return true if it finds a match |
| 338 | */ |
| 339 | public boolean find() { |
| 340 | int start = 0; |
| 341 | if (hasMatch) { |
| 342 | start = groups[1]; |
| 343 | if (groups[0] == groups[1]) { // empty match - nudge forward |
| 344 | start++; |
| 345 | } |
| 346 | } |
| 347 | return genMatch(start, RE2.UNANCHORED); |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * Matches the input against the pattern (unanchored), starting at a specified position. If there |