Skip to content

Using regular expressions in CEL Interceptros #1237

Answered by dibyom
pvlltvk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pvlltvk sorry for the delay in responding. CEL supports regular expressions using the built in matches function.
(See the matches function here: https://github.com/google/cel-spec/blob/master/doc/langdef.md#list-of-standard-definitions)

So, something like body.ref.matches('tekton/.*') should work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pvlltvk
Comment options

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