Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use regex; // 1.2.0
- use regex::Regex;
- fn main() {
- let rgx = Regex::new(r"\p{Emoji}").unwrap();
- dbg!(rgx.is_match("5"));
- dbg!(rgx.is_match("*"));
- dbg!(rgx.is_match("-"));
- dbg!(rgx.is_match("b"));
- dbg!(rgx.is_match("Ä"));
- dbg!(rgx.is_match("🦀"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement