// Rust does not have regex module in std library. // But You can use `regex` crate: // in Cargo.toml [dependencies] regex = "x.y.z"