jsonpath and regex

Hi all

I need to verify that some keys in the json response are not empty and save them

//This is how we do it today:
.check(regex("""“number”:"(\S{8})"""").saveAs(“myPhoneNumber”))

//how can I get regex to apply to jsonPath output because we may have many different numbers
//(poor design but outside my control)
.check(jsonPath("$…customers[0].number").regexp(""""(\S+)"""").saveAs(“myPhoneNumber”))

Thanks

Use a transform step in your check.