[Asterisk-Dev] extension pattern should recognize regular expression syntax

Brian West brian.west at mac.com
Thu May 26 07:40:59 MST 2005


Use the REGEXP function.

   -= Info about function 'REGEX' =-

[Syntax]
REGEX("<regular expression>" <data>)

[Synopsis]
Regular Expression: Returns 1 if data matches regular expression.

[Description]
Not available



/b

On May 26, 2005, at 8:37 AM, Maxim Litnitsky wrote:

> Hello dear developers!
> I had a task to match number  sent to me as customerid#called.
> I could not use
> exten => _.#. because . eats all till the end.
> If only I could use:
> exten => _[0-9]+#[0-9]+ it would solve the issue.
>
> Why not introduce regular extenions in dialplan ? Like in Mera MVTS  
> softswitch.
> Looking forward to your comments!
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list