regex icon indicating copy to clipboard operation
regex copied to clipboard

Regex.Options.unicode

Open pravdomil opened this issue 4 years ago • 2 comments

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

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

pravdomil avatar Jun 11 '21 11:06 pravdomil

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

miniBill avatar Aug 06 '22 13:08 miniBill

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}.

omnibs avatar Jun 27 '23 17:06 omnibs