{{name}}
with actual customer names/pattern/
) with any flags at the end$1
, $2
, etc.) in the replacement texti
: Case-insensitive matchingg
: Global matching (replace all occurrences)s
: Dotall mode (makes .
match newlines)m
: Multiline mode (makes ^
and $
match line boundaries)/pattern/
) to be interpreted correctlyIssue | Solution |
---|---|
Regex not working | Ensure pattern is wrapped in /pattern/ with proper flags |
Capture groups not working | Use Run Code node with Python regex instead |
Multiline text not matching | Add ‘s’ flag: /pattern/s |
Case sensitivity issues | Add ‘i’ flag: /pattern/i |
Only first match replaced | Add ‘g’ flag: /pattern/g |