On Wed, Jun 2, 2010 at 2:17 PM, Michael Collins <msc@freeswitch.org> wrote:


On Tue, Jun 1, 2010 at 7:57 PM, Ron McLeod <ron.freeswitch@mcleodnet.com> wrote:

Is  [32|48|54|55|65]  correct?  Shouldn’t it be  (32|48|54|55|65)   instead?

 

 

^\+?1?(0[0-1]+)?((32|48|54|55|65)\d+)\;?(phone-context=)?\+?(\d+)?$

Also, you really don't need the dash in [0-1], just do [01] which means "match a 0 or a 1"
-MC


Ok cool. Thanks for that. BTW, I've noticed that the regex CLI command doesn't always behave the same way as the core FS engine. A lot of tests that display a different result when testing using the regex command yield different behaviour when one makes a call and how FS behaves/treats the call. Maybe it's a bug in the old version. We're using a very old version of FS