Skip to main content

replace_all

Function replace_all 

Source
pub fn replace_all(s: &str, from: &str, to: &str) -> String
Expand description

替换所有匹配的字符串

对应 TypeScript 版本的 String.prototype.replaceAll