With respect to bug 7862, the syntax and description are misleading to users. the...
authorSteve Murphy <murf@digium.com>
Thu, 7 Sep 2006 04:23:00 +0000 (04:23 +0000)
committerSteve Murphy <murf@digium.com>
Thu, 7 Sep 2006 04:23:00 +0000 (04:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42224 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index 3b13d94..e330738 100644 (file)
@@ -142,8 +142,12 @@ static int regex(struct ast_channel *chan, char *cmd, char *parse, char *buf,
 static struct ast_custom_function regex_function = {
        .name = "REGEX",
        .synopsis = "Regular Expression",
-       .desc =  "Returns 1 if data matches regular expression, or 0 otherwise.",
-       .syntax = "REGEX(\"<regular expression>\" <data>)",
+       .desc =  
+               "Returns 1 if data matches regular expression, or 0 otherwise.\n"
+               "Please note that the double quotes separating the expression from the data\n"
+               "should not have any neighboring spaces, either before or after, unless you\n"
+               "intend them to be in either the expression or the data!\n",
+       .syntax = "REGEX(\"<regular expression>\"<data>)",
        .read = regex,
 };