Skip to content

Commit 8cf5fbe

Browse files
niijvdurmont
authored andcommitted
Add note about extracting emojis to README (vdurmont#91)
1 parent 3664230 commit 8cf5fbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ System.out.println(EmojiParser.removeEmojis(str, collection));
193193
// "An 😀awesome 😃string with a few emojis!"
194194
```
195195

196+
#### Extract Emojis from a string
197+
198+
You can search a string of mixed emoji/non-emoji characters and have all of the emoji characters returned as a Collection.
199+
200+
* `EmojiParser#extractEmojis(String)`: returns all emojis as a Collection. This will include duplicates if emojis are present more than once.
201+
196202
## Credits
197203

198204
**emoji-java** originally used the data provided by the [github/gemoji project](https://github.com/github/gemoji). It is still based on it but has evolved since.

0 commit comments

Comments
 (0)