[asterisk-users] Check if variable contains strings

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jun 17 09:05:15 CDT 2010


On Thu, Jun 17, 2010 at 03:37:15PM +0200, Jonas Kellens wrote:
> Hello.
>
> Can I check if a variable contains some string ??
>
> suppose Set(var=foobar)
>
> can I check if ${var} contains "foo" ??

core show function REGEX. Should work well as long as the string to
match has no special characters of its own.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list