MCPcopy Create free account
hub / github.com/ReadyTalk/avian / matches

Method matches

classpath/java/lang/String.java:527–529  ·  view source on GitHub ↗
(String regex)

Source from the content-addressed store, hash-verified

525 }
526
527 public boolean matches(String regex) {
528 return Pattern.matches(regex, this);
529 }
530
531 public String replaceFirst(String regex, String replacement) {
532 return Pattern.compile(regex).matcher(this).replaceFirst(replacement);

Callers 4

expectMatchMethod · 0.45
expectNoMatchMethod · 0.45
testTrivialPatternMethod · 0.45
mainMethod · 0.45

Calls 1

matchesMethod · 0.95

Tested by 4

expectMatchMethod · 0.36
expectNoMatchMethod · 0.36
testTrivialPatternMethod · 0.36
mainMethod · 0.36