Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5042,3 +5042,12 @@ interpolation:
return_type: str
examples:
- '{{ "goodbye, cruel world" | regex_search("goodbye,\s(.*)$") }} -> "cruel world"'
- title: regex_replace
description: Replace all occurrences in the string that match the provided regex pattern with the specified replacement string.
arguments:
regex: The regular expression pattern to match against.
replacement: The string to replace matched occurrences with.
return_type: str
examples:
- '{{ "hello world" | regex_replace("world", "universe") }} -> "hello universe"'
- '{{ "hello-world_foo" | regex_replace("[_-]", " ") }} -> "hello world foo"'