Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use regex::{ Regex, Captures };
- fn main() {
- let re = Regex::new( r#"(\.\.|\\\\|\?|%|`|\*|\|<|>)"# ).expect( "shit" );
- let m = r#"../.`./mauveweasel/options/config.toml"#;
- let result = re.replace_all( m, | captures: &Captures | {
- ""
- } );
- println!( "{}", result );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement