Skip to content

anythingBut and a range doesn't work #35

@AurelienMendes

Description

@AurelienMendes

Hello,

It seems it's not possible to do something like:

$regex->anythingBut('0-9')

since the sanitize method add systematically a "\" behind the "-" which break the regex range expression.
That giving us:

(?:[^0\-9]*)
instead of
(?:[^0-9]*)

Thanks a lot,
Aurélien

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