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

Inconsistent / broken pattern matching for unicode letters in PCRE mode #520

Open
rm-code opened this issue Feb 12, 2024 · 0 comments
Open

Comments

@rm-code
Copy link

rm-code commented Feb 12, 2024

Today I noticed, that RegExr seems to provide inconsistent / false matches for unicode pattern matching. Maybe I'm missing something...

  1. Pattern with non-unicode string:

Pattern: [\p{L}]+
Test: Example

=> Match
image

  1. Pattern with unicode string:

Pattern: [\p{L}]+
Test: Exämple

=> 2 Matches
image

  1. Pattern with start + end tags and unicode string:

Pattern: ^[\p{L}]+$
Test: Exämple

=> No Match
image

  1. Pattern with start tag and unicode string:

Pattern: ^[\p{L}]+
Test: Exämple

=> 1 Match
image

@rm-code rm-code changed the title Inconsistent / broken pattern matching for unicode letters Inconsistent / broken pattern matching for unicode letters in PCRE mode Feb 12, 2024
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

1 participant