How Best To Match Hexadecimal Values In Dialplan Pattern Matching ?

Home » Asterisk Users » How Best To Match Hexadecimal Values In Dialplan Pattern Matching ?
Asterisk Users No Comments

Hi,

Quite often I told myself it would be convenient to have a dedicated letter, such as E, to match [0-9A-Ea-e] in dialplan pattern matching just like X match [0-9] or Z match [1-9].

This happens when I want to match a MAC address in my dialplan. In this case, writing [0-9A-Ea-e] twelve times is not very pleasant.

What would you say about that ?
What is the best way to match a MAC address with Asterisk 11 and above ?

Regards