I want to check whether the values in array match regex using 'karate.match' But I'm getting polyglot exception because I have brackets in my regex, any idea how to fix this issue?
* def result= karate.match("each valueData == '#regex ^\'[A-Z0-9]+([\']?[,]?[\']?[A-Z0-9]+)*\'$'")
* match result == { pass:true, message:null }
* print result
org.graalvm.polyglot.PolyglotException: SyntaxError: Unnamed:1:41 Expected an operand but found )
'#regex ^'[A-Z0-9]+([']?[,]?[']?[A-Z0-9]+)*'$'
^