Skip to content

[libc++] Wrong match results for POSIX basic regular expression []-_] #119432

Open
@muellerj2

Description

@muellerj2

The basic regular expression []-_] should match all characters in the character range ]-_ (i.e., ], ^ and _). But libc++ erroneously does not treat ]-_ as a character range and instead matches ], - and _.

Godbolt: https://godbolt.org/z/4WE8PdGPE

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.regexIssues related to regex

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions