Summary: | ASTERISK-18341: REGEX function documentation | ||
Reporter: | Tomek Gruca (supermega) | Labels: | |
Date Opened: | 2011-08-24 10:23:14 | Date Closed: | 2011-09-14 10:06:38 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Documentation |
Versions: | 1.8.5.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | https://wiki.asterisk.org/wiki/display/AST/Function_REGEX Is: REGEX("regular expression",string) Should be: REGEX("regular expression" string) If you put a comma there it is concatenated to the string: REGEX("^\,someth",something) == 1 | ||
Comments: | By: Paul Belanger (pabelanger) 2011-08-26 14:42:45.524-0500 patch? By: Tomek Gruca (supermega) 2011-08-27 01:03:56.583-0500 I think it's bug in wiki generation because in funcs/func_strings.c it's correct: <function name="REGEX" language="en_US"> <synopsis> Check string against a regular expression. </synopsis> <syntax argsep=" "> <parameter name=""regular expression"" required="true" /> <parameter name="string" required="true" /> </syntax> [...] `argsep=" "' is ignored. By: Leif Madsen (lmadsen) 2011-08-30 12:32:21.549-0500 It's also likely this was fixed in the code somewhat recently and hasn't been "regenerated" for the wiki. Can someone check if that is the case? By: Leif Madsen (lmadsen) 2011-09-14 10:06:38.487-0500 I'm closing this as it is either already fixed and the wiki hasn't been updated, or it's actually an issue not in the Asterisk code itself. |