From 02dbcbf8b5f3b4aecec78a59eea7528e5f1f3661 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 3 Sep 2024 22:59:36 -0400 Subject: [PATCH] Update docs --- docs/text.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/text.md b/docs/text.md index 9d5cc97..8131d25 100644 --- a/docs/text.md +++ b/docs/text.md @@ -870,20 +870,20 @@ The text with occurrences of the pattern replaced. **Example:** ```tomo ->> "Hello world":replace("world", "there") +>> "Hello world":replace($/world/, "there") = "Hello there" ->> "Hello world":replace("{id}", "xxx") +>> "Hello world":replace($/{id}/, "xxx") = "xxx xxx" ->> "Hello world":replace("{id}", "\0") +>> "Hello world":replace($/{id}/, "\0") = "(Hello) (world)" ->> "Hello world":replace("{id} {id}", "just \2") +>> "Hello world":replace($/{id} {id}/, "just \2") = "just world" ->> "some (parenthesized (with inner parens) text) here":replace("(?)", "non-\1") -= "some non-parenthesized (with inner parens) text here" +>> " foo(x, fn(), y) ":replace($/foo(?)/, "baz(\1)") += " baz(x, fn(), y) " ``` ---