MCPcopy Create free account
hub / github.com/davidblewett/rure-python / expand

Method expand

regex/src/re_unicode.rs:962–964  ·  view source on GitHub ↗

Expands all instances of `$name` in `replacement` to the corresponding capture group `name`, and writes them to the `dst` buffer given. `name` may be an integer corresponding to the index of the capture group (counted by order of opening parenthesis where `0` is the entire match) or it can be a name (consisting of letters, digits or underscores) corresponding to a named capture group. If `name`

(&self, replacement: &str, dst: &mut String)

Source from the content-addressed store, hash-verified

960 ///
961 /// To write a literal `$` use `$$`.
962 pub fn expand(&self, replacement: &str, dst: &mut String) {
963 expand_str(self, replacement, dst)
964 }
965
966 /// Returns the number of captured groups.
967 ///

Callers 1

replace_appendMethod · 0.45

Calls 1

expand_strFunction · 0.85

Tested by

no test coverage detected