Skip to main content

build_placeholder_replacer

Function build_placeholder_replacer 

Source
pub fn build_placeholder_replacer(regex: &Regex) -> AhoCorasick
Expand description

Build an AhoCorasick automaton for the placeholder patterns $0, $1, …, $N based on the number of capture groups in the given regex.