Extractor types
- Regex
- KVal
- JSON
- XPath
- DSL
Extract data using regular expressions with optional capture groups.
Go regex engine does not support lookaheads or lookbehinds.
Extractor options
Name of the extractor. Used to reference extracted values. Must be lowercase without spaces or underscores.
Part of the response to extract from. Each protocol exposes different parts.
When true, extracted values can be used in subsequent requests but won’t appear in output.
Regex capture group to extract. Use 0 for full match, 1+ for specific groups.
XPath attribute to extract from matched elements.
Enable case-insensitive extraction for regex extractors.
Internal extractors
Internal extractors are crucial for multi-step templates. They extract data from one request and make it available to subsequent requests:Chaining requests with extractors
Extract data and use it in subsequent requests:Protocol-specific parts
- HTTP
- DNS
- Network
body- Response body (default)header- Response headersraw- Raw HTTP responserequest- HTTP requestall- Body + headerscookies_from_response- Cookies in name:value formatheaders_from_response- Headers in name:value format
Real-world examples
Extractor output
By default, non-internal extractors display their results in the output:Best practices
- Use internal extractors for chaining - Mark extractors as internal when their values are only needed in subsequent requests
- Name extractors descriptively - Use clear names that indicate what data is being extracted
- Extract minimal data - Only extract the data you need to reduce memory usage
- Use capture groups - For regex extractors, use capture groups to extract specific parts
- Validate extracted data - Use matchers to verify extracted data meets expected format
- Combine extractor types - Use multiple extractor types for different data formats
Common patterns
Extract and validate
Extract multiple values
Extract and transform
Related
Matchers
Pattern matching
Variables
Dynamic values
Helper Functions
DSL helper functions
Flow Control
Conditional execution