Full string match #737
-
In java, i could do |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jan 6, 2021
Replies: 1 comment 2 replies
-
From the docs:
So in your case, you would want: use regex::Regex;
fn main() {
let matched = Regex::new(r"^regexStr$").unwrap().is_match("string");
println!("{:?}", matched);
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
XakepSDK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the docs:
So in your case, you would want: