question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getting all emojis from string

See original GitHub issue

Hi,

Is there a better way to extract all emojis from a string? This is what i’m doing atm

    public ArrayList<String> getAllEmojis(String str) {
        ArrayList<String> emojis = new ArrayList<>();
        for (Emoji emoji : EmojiManager.getAll()) {
            if (str.contains(emoji.getUnicode()))
                emojis.add(emoji.getUnicode());
        }
        return emojis;
    }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
vdurmontcommented, May 22, 2016

Yes! Look out for v3.1.2, it should be up today!

0reactions
roberterdincommented, May 22, 2016

Will you publish a new version to the Maven Central?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get all emojis in a string - Stack Overflow
I want to do this without specifying any emoji and just look for all. I have considered from emoji import UNICODE_EMOJI . import...
Read more >
get-emojis-from-string - npm
Get Default or Discord emojis from string. ... Start using get-emojis-from-string in your project by running `npm i get-emojis-from-string`.
Read more >
How to get all available emojis in an array in Swift
I want to be able to get an array of all the available emojis in Swift. What I mean by available is all...
Read more >
Extracting emojis from a text • Delicious Insights
Emojis are everywhere, but it's hard to identify, extract and collect them from a string. They're on the rise and always use surrogate...
Read more >
Full Emoji List, v15.0 - Unicode
№ Code Browser CLDR Short Name 1 U+1F600 😀 grinning face 2 U+1F603 😃 grinning face with big eyes 3 U+1F604 😄 grinning face with smiling...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found