Skip to content

Nested characters class do not report the same result as two character classes in an | #680

Closed
@Ekleog

Description

@Ekleog

Hello,

Just wanted to drop by with one weird behavior I've found just now: r#"^([-.[:alnum:]]|[[:^ascii:]])+"# matches (on a find) the whole élégance.fr string, while r#"^[-.[:alnum:][:^ascii:]]+"# matches only its first character.

However, as far as I could understand, these two variants should have the same behavior.

Anyway thank you for the regex crate! And for regex_automata too, as I'm probably going to switch to it soon as per your advice in the other issue :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions