summaryrefslogtreecommitdiffhomepage
path: root/examples/regex2.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/regex2.c')
-rw-r--r--examples/regex2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/regex2.c b/examples/regex2.c
index d3a22f5a..013fa557 100644
--- a/examples/regex2.c
+++ b/examples/regex2.c
@@ -15,7 +15,7 @@ int main()
};
c_with (cregex re = cregex_init(), cregex_drop(&re))
- c_forloop (i, c_arraylen(s))
+ c_forrange (i, c_arraylen(s))
{
int res = cregex_compile(&re, s[i].pattern, 0);
if (res < 0) {
@@ -25,7 +25,7 @@ int main()
printf("input: %s\n", s[i].input);
c_formatch (j, &re, s[i].input) {
- c_forloop (k, cregex_captures(&re))
+ c_forrange (k, cregex_captures(&re))
printf(" submatch %lld: %.*s\n", k, c_ARGsv(j.match[k]));
puts("");
}