Actions19
- Convert Actions
- Data Actions
- HTML Hosting Actions
- PDF Actions
- Web Actions
Data → Regex
AI-generatedSummary
Apply a regex operation to the required input text using the supplied pattern and flags. Choose Extract, Replace, Split, or Test; provide Replacement when using Replace.
Inputs
- Input Text (required) — Text to process.
- Regex Pattern (required) — Pattern to apply. The implementation trims surrounding whitespace and removes leading or trailing quote characters before sending it for processing.
- Regex Flags (required) — Regex flags; defaults to
g. - Regex Operation (required) — Select Extract, Replace, Split, or Test; defaults to Extract.
- Replacement — Replacement text used for the Replace operation; defaults to an empty string.
Output shape
A single item with the result in json.result.
The result is returned from the toolkit's regex service; its precise type and operation-specific format are not specified in the node source.
Examples
Example 1: Extract email addresses from text.
Set Input Text to the source text, Regex Pattern to an email-matching pattern, Regex Flags to g, and Regex Operation to Extract.
Example 2: Replace all occurrences of a value.
Set Regex Operation to Replace, provide the pattern and Regex Flags, and enter the replacement text in Replacement.