regexr icon indicating copy to clipboard operation
regexr copied to clipboard

Inconsistent / broken pattern matching for unicode letters in PCRE mode

Open rm-code opened this issue 4 months ago • 0 comments

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 avatar Feb 12 '24 10:02 rm-code