summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regex_replace.c
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-10 12:16:44 +0200
committertylov <[email protected]>2023-07-10 12:16:44 +0200
commit8debe47bc014c41b6cf8082dcef4b87e4ef29cfa (patch)
tree9d2a770573930191d569c9a25e2e0e684b905a26 /misc/examples/regex_replace.c
parent7342a721e5dbef94bb1b1541f01154fe4a37aeb8 (diff)
downloadSTC-modified-8debe47bc014c41b6cf8082dcef4b87e4ef29cfa.tar.gz
STC-modified-8debe47bc014c41b6cf8082dcef4b87e4ef29cfa.zip
Renamed input enum flags for cregex functions.
Diffstat (limited to 'misc/examples/regex_replace.c')
-rw-r--r--misc/examples/regex_replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regex_replace.c b/misc/examples/regex_replace.c
index 2c7794af..3a33efde 100644
--- a/misc/examples/regex_replace.c
+++ b/misc/examples/regex_replace.c
@@ -48,7 +48,7 @@ int main()
printf("euros: %s\n", cstr_str(&str));
/* Strip out everything but the matches */
- cstr_take(&str, cregex_replace_sv(&re, csview_from(input), "$3.$2.$1;", 0, NULL, CREG_R_STRIP));
+ cstr_take(&str, cregex_replace_sv(&re, csview_from(input), "$3.$2.$1;", 0, NULL, CREG_STRIP));
printf("strip: %s\n", cstr_str(&str));
/* Wrap all words in ${} */