[asterisk-users] Check if variable contains strings
Jonas Kellens
jonas.kellens at telenet.be
Thu Jun 17 10:47:37 CDT 2010
Indeed, this gives a correct result.
Thank you all.
Jonas.
> Being a "PERL Weenie" I don't delve into regular expressions any more
> than I have to. That caveat given, these "changes" produced the
> desired (and correct?) testing results
>
> exten => 1234,n,Set(test=${REGEX("foo" ${footest})})
> exten => 1234,n,verbose(test returned ${test})
> returns 1
>
> exten => 1234,n,Set(test=${REGEX("fob" ${footest})})
> exten => 1234,n,verbose(test returned ${test})
> returns 0
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100617/6191019c/attachment.htm
More information about the asterisk-users
mailing list