Skip to content

How to GLob properly #596

May 30, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hey @chippyash, I've responded to your query on the other thread, but here's a simple example showing how globbing works:

https://play.openpolicyagent.org/p/JELG8geA7n

glob_ok := glob.match("portal:**", [":"], "portal:config:bar")
glob_not_ok := glob.match("portal:*", [":"], "portal:config:bar")

glob_not_ok is false since the * only matches a single part.

Would you be able to have a go at setting up an example on https://play.openpolicyagent.org so we can see the data too? https://play.openpolicyagent.org

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@chippyash
Comment options

@charlieegan3
Comment options

@chippyash
Comment options

@charlieegan3
Comment options

@charlieegan3
Comment options

Answer selected by chippyash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants