Regex in if condition of karate framework

Viewed 325

Is it possible to use a regex in karate if condition as below

eval if ( xx!=“#regex [0-9]{7}”) karate.log(“success”)

I wanted to execute a if statement, regex evaluation is passed . Above code doesn’t evaluate as regex . It simply prints the log

1 Answers
Related