Skip to main content

Node Inputs

Required Fields

Input Text:
The text content to process.
Example: "Hello World! Welcome to the world of SEO."
Find:
The text or pattern to search for.
Example: "world"
Replace:
The replacement text.
Example: "universe"

Optional Fields

Case Sensitive:
Whether the search should be case-sensitive.
Example: false
Default: false
Use Regular Expression:
Enable regular expression pattern matching.
Example: true
Default: false
Replace All:
Replace all occurrences (true) or only the first occurrence (false).
Example: true
Default: true
Multiline:
Treat input as multiline text (affects ^ and $ in regex).
Example: true
Default: false

Node Output

Modified Text:
The processed text with replacements applied, along with statistics about the operation.
Example Output:
{
  "original_text": "Hello World! Welcome to the world of SEO.",
  "modified_text": "Hello universe! Welcome to the universe of SEO.",
  "replacements_made": 2,
  "pattern": "world",
  "replacement": "universe",
  "case_sensitive": false
}
With Regular Expression:
{
  "original_text": "Contact us at support@example.com or sales@example.com",
  "modified_text": "Contact us at [EMAIL] or [EMAIL]",
  "replacements_made": 2,
  "pattern": "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",
  "replacement": "[EMAIL]",
  "regex_used": true
}

Node Functionality

The Find and Replace node:
  • Performs text search and replacement operations.
  • Supports both literal text and regular expressions.
  • Offers case-sensitive and case-insensitive matching.
  • Can replace all occurrences or only the first match.
  • Provides detailed statistics about replacements made.
  • Useful for text cleaning, formatting, and data transformation.
I