Lines Matching defs:replace
68 /// It can be used to search, split or replace text. All searching is done with
116 /// to search, split or replace text in a string.
385 /// assert_eq!(re.replace(b"1078910", &b""[..]), &b"1010"[..]);
398 /// let result = re.replace(b"Springsteen, Bruce", |caps: &Captures| {
417 /// let result = re.replace(b"Springsteen, Bruce", &b"$first $last"[..]);
434 /// let result = re.replace(b"deep fried", &b"${first}_$second"[..]);
443 /// Finally, sometimes you just want to replace a literal string with no
453 /// let result = re.replace(b"Springsteen, Bruce", NoExpand(b"$2 $last"));
457 pub fn replace<'t, R: Replacer>(
469 /// See the documentation for `replace` for details on how to access
483 /// See the documentation for `replace` for details on how to access
1104 /// Replacer describes types that can be used to replace matches in a byte
1112 /// Appends text to `dst` to replace the current match.
1243 /// It can be used with `replace` and `replace_all` to do a literal byte string