You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if condition { if_true.eval(ctx).await}else{ if_false.eval(ctx).await}
588
588
}
589
589
590
+
/// Replaces matches of a regular expression pattern in the string. The replacement string supports backreferences: `$0` for the whole match, `$1`, `$2`, etc. for capture groups.
591
+
#[node_macro::node(category("Text"))]
592
+
fnregex_replace(
593
+
_:implCtx,
594
+
string:String,
595
+
/// The regular expression pattern to search for.
596
+
pattern:String,
597
+
/// The replacement string. Use `$0` for the whole match, `$1`, `$2`, etc. for capture groups.
598
+
replacement:String,
599
+
/// Replace all matches. When disabled, only the first match is replaced.
600
+
#[default(true)]
601
+
replace_all:bool,
602
+
/// Match letters regardless of case.
603
+
case_insensitive:bool,
604
+
/// Make `^` and `$` match the start and end of each line, not just the whole string.
/// Iterates over a list of strings, evaluating the mapped operation for each one. Use the *Read String* node to access the current string inside the loop.
0 commit comments