Regex in policy

I am trying to using import tfrun and get the message and would like to do the regex on the message to change ticket. So is there a way I can do a regex to get the ticket from the commit message and evaluate the policy to fail or run.


Hi @swetharamk,

Take a look at the documentation for the matches operator.

I did try to use the matches to get it but , it was failing with unknow escape sequence.
I tried to check if the regex is correct in python before implementing it.

@swetharamk take a look at the following: