handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

[ASK] Can StringHelpers.java have function to filter the data using regex

Open Hendrione opened this issue 5 years ago • 0 comments

Hi.. actually I am using wiremock to mock my data. currently I am mocking one API which has the body request like this:

api_key=fcda9e1954607&AIRWAYBILLS=3200000019094&username=TEST

I want to fetch the AIRWYBILLS data and put it on response. currently I am using this following command: {{substring request.body 53 66}} is there any convenient way to solve this problem like using regex? because my problem is the AIRWAYBILLS data length is different per request.

Hendrione avatar Jan 29 '19 10:01 Hendrione