[asterisk-users] Unexpected dialplan match
Daniel Tryba
daniel at tryba.nl
Mon Dec 20 20:59:10 UTC 2010
On Mon, Dec 20, 2010 at 12:27:46PM -0600, Jason Parker wrote:
> >'_*[0-9a-zA-Z].*0.'
>
> '.' stops further matching. Your extension ends up being (effectively)
> shortened to _*[0-9a-zA-Z].
That explains a lot, never read it this way before. Thanks for the eye
opener.
What I'm looking for is a extension that handles:
^\*\w+\*\d+$
I guess I'll have to catch _*. and manually check if it matches above
regexp.
--
Daniel Tryba
More information about the asterisk-users
mailing list