Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex.Options.unicode #14

Open
pravdomil opened this issue Jun 11, 2021 · 2 comments
Open

Regex.Options.unicode #14

pravdomil opened this issue Jun 11, 2021 · 2 comments

Comments

@pravdomil
Copy link

Usefull for example: "čočka".match(/\p{Letter}+/u)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes

@miniBill
Copy link

miniBill commented Aug 6, 2022

This is also relevant to the fact that Char.isLower only works for ASCII, a regex-based alternative could make use of those classes

@omnibs
Copy link

omnibs commented Jun 27, 2023

This is also relevant for sanely matching/stripping/replacing Emoji in Elm, with matchers like \p{Emoji}, \p{Emoji_Modifier}, \p{Emoji_Component}, \p{Emoji_Modifier_Base}, \p{Emoji_Presentation}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants