diff options
-rw-r--r-- | src/regex.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c index f4add61..75f915b 100644 --- a/src/regex.c +++ b/src/regex.c @@ -282,6 +282,11 @@ static void *regex_new(t_symbol *s, int argc, t_atom*argv) x->x_regexp=0; x->x_matchnum=NUM_REGMATCHES; if(argc)regex_regex(x, gensym(""), argc, argv); + else{ + t_atom a; + SETSYMBOL(&a, gensym(".*")); + regex_regex(x, 0, 1, &a); + } #else error("[regex] non-functional: compiled without regex-support!"); #endif |