Skip to main content
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

ParameterDescriptionData TypeRequiredRange
stringThe input text string to search and replace withinSTRINGYes-
regex_patternThe regular expression pattern to search for in the input stringSTRINGYes-
replaceThe replacement text to substitute for matched patternsSTRINGYes-
case_insensitiveWhen enabled, makes the pattern matching ignore case differences (default: True)BOOLEANNo-
multilineWhen 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)BOOLEANNo-
dotallWhen enabled, the dot (.) character will match any character including newline characters. When disabled, dots won’t match newlines (default: False)BOOLEANNo-
countMaximum 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)INTNo0-100

Outputs

Output NameDescriptionData Type
outputThe modified string with the specified replacements appliedSTRING
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 58d4ec055aa5901b0e536bb2ca6993053ea85a9269d09cdcdf584df935d6876d