Actions15
Regex Extractor
AI-generatedSummary
Extract text data matching regex patterns from a specified URL's webpage content using built-in, preset, or custom regex patterns.
Inputs
- URL (required) — The URL to extract content from using regex patterns
- Pattern Type (required) — Select pattern mode: built-in common patterns, custom regex patterns, or predefined presets for contact or financial info.
- Built-in Patterns — Choose one or more common regex patterns (e.g., Email, Credit Card, IP Address) for extracting matching text; used if Pattern Type is 'builtin'.
- Custom Patterns — Define one or more custom regex patterns with labels for matching text; used if Pattern Type is 'custom'.
- Options — Extraction options including whether to clean extracted text by normalizing whitespace and whether to include the original full webpage text in output.
- Browser & Session — Settings to configure headless browser session details such as browser type, user agent, cookies, proxy, JavaScript execution, stealth mode, viewport size, and request headers used for loading the target URL.
- Crawl Settings — Settings controlling crawl behavior including waiting for page load events or specific selectors, delay before extraction, CSS selectors to limit extraction scope, ad and CSS blocking, anti-bot simulations, cache behavior, JavaScript code to run before extraction, exclusion rules, and retry attempts.
Output shape
a structured JSON object containing extracted regex match data labeled by pattern, optionally the cleaned text values, and optionally the full original webpage text.
Extraction results include arrays of matched text for each pattern label. Cleaning option normalizes whitespace in extracted strings. Full original text is included only if explicitly requested. The operation performs a headless browser crawl of the provided URL with customizable session and crawl settings to obtain page content before extraction. Errors during extraction or invalid regex pattern inputs may produce empty or error responses.
Examples
Example 1: Extract email addresses and URLs from a webpage
Provide target URL, select 'Built-in Patterns' as Pattern Type with 'Email' and 'Url' selected, optionally enable Clean Extracted Text.
Example 2: Extract custom price patterns from webpage content
Provide target URL, select 'Custom Patterns' as Pattern Type, add regex pattern like '$\s?\d{1,3}(?:,\d{3})*(?:.\d{2})?' labeled 'price'.