I want to extract certain text from the response i get in jMeter but the issue is that the response is multiline and does not extract the value correctly. I have tried using multiline mode which got me somewhere but not fully. Here is the response:
"category61B" : [ "Specified Insurance Company", "Investment Entity", "Custodial Institution ", "Depository Institution", "Other" ],
I want to extract every value inside the square brackets without ". Regex i wrote for this is:
(?s)\"category61B\" : [ \"([^"]+)\" which gave me:
Specified Insurance Company
I am not able to write further regex to get the other values.
Note: I tried online Regex Tester and it gave me the correct groups. Obviously i tried the same regex with jmeter and it gave me 0 matches but no errors.
The regex wrote there was:
(?s)\"category61B\" : \[ \"(.+?)\",\n\t\t\t\t\t\t\"(.+?)\", \"(.+?)\",\n\t\t\t\t\t\t\"(.+?)\", \"(.+?)\" ],
Update: I tried the below RegEx but this will result in capturing everything till the end of response.