Actions62
- SQL Actions
- Client Access Actions
- User Access Actions
- Tools Actions
- HTML to PDF
- Markdown to PDF
- Text to PDF
- Merge PDFs
- Split PDF
- Extract PDF Text
- Resize Image
- Convert Image
- Compress Image
- Add Image Watermark
- Create Thumbnail
- Generate Barcode
- Read Barcode
- Validate CPF/CNPJ
- Format CPF/CNPJ
- Generate UUID
- Transform JSON
- CSV to JSON
- JSON to CSV
- Normalize Text
- Extract Regex Fields
- Validate JSON Schema
- Generate Hash
- HMAC Sign
- Base64 Encode/Decode
- JWT Decode
- Encrypt Text
- Decrypt Text
- Format Date
- Parse Date
- Add Business Days
- Format Currency
- Number to Words
- Build Socket Event Payload
- Validate Client Token
- Validate Agent Context
- Build SQL Request
- Parse SQL Rows
- Generate Access Request Summary
- Publish Socket Event
- Wait for Socket Event
Tools → Extract Regex Fields
AI-generatedSummary
Extract regex matches from provided text using a specified pattern and flags, outputting the results in a JSON property.
Inputs
- Tool Category — Select the category of tools to show (default is 'Documents', but for regex extraction the 'Data' category should be used).
- Text (required) — Input text to run the regex pattern against.
- Regex Pattern (required) — The regular expression pattern to apply to the text.
- Regex Flags (required) — Flags for the regex pattern, defaults to 'g' for global matching.
- Output JSON Property — JSON property name where the extracted regex result array will be stored on the output item; defaults to 'regex'.
Output shape
A single JSON object with an added property (default 'regex') containing an array of all regex matches extracted from the input text.
The regex pattern is applied globally to the input text (flag 'g' by default), capturing all matches. The output is always JSON; no binary data is produced by this operation.
Examples
Example 1: Extracting all email addresses from a given text
Set Tool Category to 'Data', specify the input text containing emails, set Regex Pattern to capture email address format, use default 'g' flag, and set Output JSON Property as desired (e.g. 'emails').
Example 2: Extract all IPv4 addresses in a log file text
Enter the log text in Text, use an appropriate Regex Pattern for IPv4 addresses, ensure Regex Flags include 'g', and define the output property name where results will be stored.