Rust Regex:
I haven't given much attention to pattern matching. but I think it should be must taught topic for every programming student.
having said that, we can get into the my example
we can get into the Rust regex crate https://crates.io/crates/regex
and https://docs.rs/regex/1.3.4/src/regex/lib.rs.html#1-785
Since Rust handles string pretty nicely, regex expression matching is quite easy even if for my native language - Malayalam
you can either create an Rust regex object with Regex::new(r"(മല)")
or
RegexSetBuilder::new(&[r"ജാവ"]).case_insensitive(true)
.build()?;
if you really want to check each malayalam character , then you can use Regex::new(r"(p\{Malayalam}).unwrap()
For more detail how to use regex :
https://www.regular-expressions.info/brackets.html
https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285
Code details: regex malayalam search
.