Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. use regex; // 1.2.0
  2. use regex::Regex;
  3.  
  4. fn main() {
  5. let rgx = Regex::new(r"\p{Emoji}").unwrap();
  6. dbg!(rgx.is_match("5"));
  7. dbg!(rgx.is_match("*"));
  8. dbg!(rgx.is_match("-"));
  9. dbg!(rgx.is_match("b"));
  10. dbg!(rgx.is_match("Ä"));
  11. dbg!(rgx.is_match("🦀"));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement