-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 RegEx to the path filtering #949
Comments
yk-jemmic
changed the title
Add RegExp to the path filtering
Add RegEx to the path filtering
Jul 21, 2023
+1 |
any update on this? @yk-jemmic did you found any workaround? |
+1 |
Hi, any update on this? Or workaround? ^-^ |
we have implemented this, not sure if we can open source it. |
I just wrote about this in the jsonpath RFC repo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be very useful to apply a regular expression to filter paths
Here is an example:
Having the json bellow how to get all the "name"s of "Bank"s? :
I wish one of these expressions could work:
$..['/.*Bank/'].name
$..[?('/.*Bank/')].name
$..[?(@.key() =~ '/.*Bank/')].name
and as a result
[ "ABC", "ING", "JPMorgan"]
The text was updated successfully, but these errors were encountered: