handlebars.java
handlebars.java copied to clipboard
[ASK] Can StringHelpers.java have function to filter the data using regex
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.