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

Method replaceFirst

classpath/java/lang/String.java:531–533  ·  view source on GitHub ↗
(String regex, String replacement)

Source from the content-addressed store, hash-verified

529 }
530
531 public String replaceFirst(String regex, String replacement) {
532 return Pattern.compile(regex).matcher(this).replaceFirst(replacement);
533 }
534
535 public String replaceAll(String regex, String replacement) {
536 return Pattern.compile(regex).matcher(this).replaceAll(replacement);

Callers 1

mainMethod · 0.45

Calls 2

compileMethod · 0.95
matcherMethod · 0.45

Tested by 1

mainMethod · 0.36