Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add !^ and !$ operator #644

Merged
merged 3 commits into from
Jul 7, 2023
Merged

Add !^ and !$ operator #644

merged 3 commits into from
Jul 7, 2023

Conversation

nwagner84
Copy link
Member

@nwagner84 nwagner84 commented Jul 7, 2023

This PR adds the starts-not-with (!^) and the ends-not-with (!$) relational operator. The !^-operator tests whether a value starts not with the given prefix; and the !$-operator tests whether a value doesn't end with a given suffix.

Example

$ pica filter '[email protected] !^ "T"' DUMP.dat.gz -o not-T.dat.gz
$ pica filter '002@{ 0 !$ "1" && 0 !$ "z" }' DUMP.dat.gz -o not-level-1z.dat.gz

@nwagner84 nwagner84 merged commit 5d132b9 into main Jul 7, 2023
26 checks passed
@nwagner84 nwagner84 deleted the invert-starts-ends-with branch July 7, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant