Skip to content

Case-insensitive \p{} issue #432

@michaeltang4829

Description

@michaeltang4829

Hello,

We're using PCRE2 10.43, and we found what looks to be a bug with unicode properties while using character case properties. When the pattern has the case-insensitive modifier, regardless of the character case being only upper-case, should also find lower case characters.

Text: a
Pattern: (?i:\p{Lu})
Result: No matches
Expected: a

There's also documentation in section 17 in the pcre2compat page hinting that this was the original behavior in Perl, but later Perl corrected this behavior.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions