Skip to content

Paul-Etienne/insomnia-plugin-response-body-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Navigate to https://insomnia.rest/plugins/insomnia-plugin-response-body-regex
  2. Click on Install Plugin
  3. Click Open
  4. Once opened, click on Install

From the Insomnia App

  1. Go to Application > Preferences or click the cog icon (⚙️)
  2. Navigate to the Plugins tab
  3. Enter insomnia-plugin-response-body-regex
  4. 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:
Response Body Regex plugin 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

About

Insomnia plugin to extract values in responses based on a regex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published