Skip to content

Feature request: the is_match =~ and its negation !~ operators #425

@twolodzko

Description

@twolodzko

Having the =~ and !~ operators would enable user to use slightly simpler syntax to do simple filtering. Moreover, underneath the operator could use Regex crate's is_match which is faster than doing the full match, which could lead to some minor speedups in such cases.

I was thinking of contributing it, but from what I saw in the code, this would lead to some architectural changes (this operator has different logic than the regular ones because right hand side is always considered a regex, so it had consequences in parsing, evaluation, and possibly error handling) and I don't feel like I would like to impose those given limited knowledge of the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions