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

Allow subfield code ranges in subfield matcher #733

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

nwagner84
Copy link
Member

@nwagner84 nwagner84 commented Dec 11, 2023

This PR introduce subfield code ranges in a matcher/filter expression. The following expression searches for the substring 'Algebra' in any subfields of the fields 041A oder 041@:

$ pica filter '041[A@].[a-z] =? "Algebra"' algebra.dat

NB: Now, a path and a matcher expression use the same syntax (single code, ranges, wildcards).

@nwagner84 nwagner84 added the C-enhancement Category: enhancement label Dec 11, 2023
@nwagner84
Copy link
Member Author

CC: @mschumac

@nwagner84 nwagner84 changed the title Allow subfield wildcard in matcher expressions Allow subfield code ranges in subfield matcher Dec 11, 2023
@nwagner84 nwagner84 self-assigned this Dec 11, 2023
@nwagner84 nwagner84 merged commit a53065a into main Dec 11, 2023
@nwagner84 nwagner84 deleted the subfield-matcher-wildcard branch December 11, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant