insomnia-plugin-response-body-regex
v1.0.0
Published
This Insomnia plugin provides a way to call a different request from your collection and extract a specific value based on a regex.
Downloads
12
Readme
Response Body Regex
This Insomnia plugin provides a way to call a different request from your collection and extract a specific value based on a regex.
Installation
From Insomnia Plugin Hub
- Navigate to https://insomnia.rest/plugins/insomnia-plugin-response-body-regex
- Click on Install Plugin
- Click Open
- Once opened, click on Install
From the Insomnia App
- Go to Application > Preferences or click the cog icon (⚙️)
- Navigate to the Plugins tab
- Enter
insomnia-plugin-response-body-regex
- Click on Install
Usage
- Press Ctrl + Space where you want to add a request call with regex extraction
- Type
response
- Select
Response regex
to display this window:
- Select the request you want to call from the dropdown list
- Type the regex you want to use with the result of the request, make sure to surround the expected value with a capture group (using parenthesis)
- You can choose when to perform a new call to the request
- Visualize a preview of the result in the
Live Preview
area and adjust the regex accordingly