diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 3b13d94389..e330738a23 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -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(\"\" )", + .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(\"\")", .read = regex, };