diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-06-28 15:35:05 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-06-28 15:35:05 +0000 |
commit | 3ed5f456a05316930f06fe0ea0730bc4eac3e69a (patch) | |
tree | 22b4a01d82f203f8d60bd8de22becd2805066c43 /src | |
parent | 0955f6d47a84dd1e510649b1659dfa0fe28cd076 (diff) |
the default regex is now ".*" which matches anything instead of NO regex
svn path=/trunk/externals/zexy/; revision=5309
Diffstat (limited to 'src')
-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 |