Skip to content

Regex to capture emoji #946

@phungleson

Description

@phungleson

What version of regex are you using?

1.7.1

Describe the bug at a high level.

I wrote a regex to capture single emoji like this ^\p{Emoji}+$

It captures most of the emojis (in apple eco) but some aren't, some fails such as:

Activities: 🕹️...
Flags: 🏴󠁧󠁢󠁥󠁮󠁧󠁿🏴‍☠️ ...
Travel and places: 🏔️ ...
Symbols: ⬆️☯️ ...
and many more...

I can list them all if it is helpful.

What are the steps to reproduce the behavior?

Explained.

What is the actual behavior?

Explained.

What is the expected behavior?

Ideally it should try to capture as many emojis as possible.

Or maybe it is impossible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions