From 3ed5f456a05316930f06fe0ea0730bc4eac3e69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 28 Jun 2006 15:35:05 +0000 Subject: the default regex is now ".*" which matches anything instead of NO regex svn path=/trunk/externals/zexy/; revision=5309 --- src/regex.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/regex.c') 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 -- cgit v1.2.1