You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\pN Unicode character class (one-letter name)
\p{Greek} Unicode character class
\PN negated Unicode character class (one-letter name)
\P{Greek} negated Unicode character class
I imagine this could be implemented in RE2 compat mode.
The text was updated successfully, but these errors were encountered:
Note that we loose unicode char matching for --type=word because of
dlclark/regexp2#65 and of course user regexps
cant use \p{N} escapes any more. Hopefully regexp2 will add support for
these soon-ish. IMO lookaround is more important than \p.
Fixes#6265
The \p{N} syntax is already supported, but I'll need to add \pN support. Since the current behavior for this syntax is a compile error I'm considering adding it as default behavior and not putting it behind the RE2 flag. It's hard to imagine that anybody is depending on the existing compile error if they used the \pN syntax and this makes regexp2 line up with PCRE, Rust, and Go.
Extract from https://pkg.go.dev/regexp/syntax
I imagine this could be implemented in RE2 compat mode.
The text was updated successfully, but these errors were encountered: