pub fn find_emojis(value: impl AsRef<str>) -> Vec<EmojiIdentifier> {
    lazy_static::lazy_static! {
        static ref FIND_EMOJI : regex::Regex = regex::Regex::new(r"<a?:[0-9a-zA-Z_]{2,32}:[0-9]{18,}>").unwrap();
    }
    FIND_EMOJI
        .find_iter(value.as_ref())
        .filter_map(|x| serenity::utils::parse_emoji(x.as_str()))
        .collect()
}
/// Find all emojis in a String
Find all emojis in a String
Find all emojis in a String
pub fn find_emojis(value: impl AsRef<str>) -> Vec<EmojiIdentifier> {
    lazy_static::lazy_static! {
        static ref FIND_EMOJI : regex::Regex = regex::Regex::new(r"<a?:[0-9a-zA-Z_]{2,32}:[0-9]{18,}>").unwrap();
    }
    FIND_EMOJI
        .find_iter(value.as_ref())
        .filter_map(|x| serenity::utils::parse_emoji(x.as_str()))
        .collect()
}
pub fn find_emojis ( value : impl AsRef < str > ) -> Vec < EmojiIdentifier > { lazy_static :: lazy_static ! { static ref FIND_EMOJI regex Regex regex Regex new ( r"<a?:[0-9a-zA-Z_]{2,32}:[0-9]{18,}>" ) unwrap ( ) } FIND_EMOJI . find_iter ( value . as_ref ( ) ) . filter_map ( | x | serenity :: utils :: parse_emoji ( x . as_str ( ) ) ) . collect ( ) }
Find all emojis in a String
Find all emojis in a String
value
impl AsRef<str>
value
impl AsRef<str>