Lines Matching defs:replace
84 /// or replace text. All searching is done with an implicit `.*?` at the
171 /// to search, split or replace text in a string.
437 /// assert_eq!(re.replace("1078910", ""), "1010");
450 /// let result = re.replace("Springsteen, Bruce", |caps: &Captures| {
466 /// let result = re.replace("Springsteen, Bruce", "$first $last");
483 /// let result = re.replace("deep fried", "${first}_$second");
492 /// Finally, sometimes you just want to replace a literal string with no
502 /// let result = re.replace("Springsteen, Bruce", NoExpand("$2 $last"));
506 pub fn replace<'t, R: Replacer>(
518 /// See the documentation for `replace` for details on how to access
532 /// See the documentation for `replace` for details on how to access
1156 /// Replacer describes types that can be used to replace matches in a string.
1163 /// Appends text to `dst` to replace the current match.
1294 /// It can be used with `replace` and `replace_all` to do a literal string