MCPcopy Create free account
hub / github.com/google/re2j / find

Method find

java/com/google/re2j/Matcher.java:339–348  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Calls 2

genMatchMethod · 0.95
resetMethod · 0.95