Hi,Trying to find information on whether its possible to use Regex in binary stubs
i.e. capture elements from the base64 string and use in response
"responses": [
{
"is": "MDMzMzAyNDk1{captured[0]}AzMjM2MzAzMDMwMzAzNTMwMzAzMTMwMzA0NjMyMzM0MzMwMzYzODMxMzIzODQ1MzEzODMwMzAzMjMwMzAzMDMwMzAzMDMwMzAzMDMwMzAzMDMwMzAzMDM4MzEzNjM0MzEzMTMxMzEzMTMxMzEzMTMxMzEzMTMxMzEzMT"
}
"predicates": [ {
matches : { "base64Str" : MDMzMzAyNDk1(.{8})AzMjM2MzAzMDMwMzAzNTMwMzAzMTMwMzA0NjMyMzM0MzMwMzYzODMxMzIzODQ1MzEzODMwMzAzMjMwMzAzMDMwMzAzMDMwMzAzMDMwMzAzMDMwMzAzMDM4MzEzNjM0MzEzMTMxMzEzMTMxMzEzMTMxMzEzMTMxMzEzMT
}
} ]
I have written a custom protocol to convert the binary to hex as its easier to work with for us, but concept is the same, just trying to see whether we can do this with built-in mountebank or if I have to expand the scope of the custom protocol
Thanks