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.
Having the
=~and!~operators would enable user to use slightly simpler syntax to do simple filtering. Moreover, underneath the operator could use Regex crate'sis_matchwhich 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.