RegEx?

Is there a regular expression syntax that’s available? I have quite a few number blocks that I check for with

but I’d also like to do some additional validations based on patterns. Is there a way to do this?

Some info here that might get you pointed in the right direction:
http://michigantelephone.wordpress.com/2012/11/21/did-you-know-that-asterisk-has-the-ability-to-evaluate-regular-expressions-though-not-in-the-same-way-as-perl-or-freeswitch/