Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The RegexReplace node finds and replaces text in strings using regular expression patterns. It allows you to search for text patterns and replace them with new text, with options to control how the pattern matching works including case sensitivity, multiline matching, and limiting the number of replacements.

Inputs

ParameterData TypeRequiredRangeDescription
stringSTRINGYes-The input text string to search and replace within
regex_patternSTRINGYes-The regular expression pattern to search for in the input string
replaceSTRINGYes-The replacement text to substitute for matched patterns
case_insensitiveBOOLEANNo-When enabled, makes the pattern matching ignore case differences (default: True)
multilineBOOLEANNo-When enabled, changes the behavior of ^ and $ to match at the start/end of each line rather than just the start/end of the entire string (default: False)
dotallBOOLEANNo-When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won’t match newlines (default: False)
countINTNo0-100Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc. (default: 0)

Outputs

Output NameData TypeDescription
outputSTRINGThe modified string with the specified replacements applied