summaryrefslogtreecommitdiffhomepage
path: root/examples/regex_replace.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-07-27 15:22:38 +0200
committerTyge Løvset <[email protected]>2022-07-27 15:22:38 +0200
commitc37abf4f78b97244e92cba6c352501a4d22110cf (patch)
tree12c49ad74db06641bd7764ea64f5cb56e9fa3f26 /examples/regex_replace.c
parent2bae847079852eb808e50a136659e98898616bef (diff)
downloadSTC-modified-c37abf4f78b97244e92cba6c352501a4d22110cf.tar.gz
STC-modified-c37abf4f78b97244e92cba6c352501a4d22110cf.zip
VERSION 3.8 BETA: Some changes in cstr / csview APIs: replace* / find*, *_u8(). . See README.md
Diffstat (limited to 'examples/regex_replace.c')
-rw-r--r--examples/regex_replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex_replace.c b/examples/regex_replace.c
index 21252236..3dcb965d 100644
--- a/examples/regex_replace.c
+++ b/examples/regex_replace.c
@@ -41,7 +41,7 @@ int main()
cregex_drop(&re);
printf("euros: %s\n", cstr_str(&str));
- /* Wrap all words in {} */
+ /* Wrap all words in ${} */
cstr_take(&str, cregex_replace_p("[52] apples and [31] mangoes", "[a-z]+", "$${$0}"));
printf("curly: %s\n", cstr_str(&str));
}