locked
How do I create a normalization rule that removes (0) from the number dialed RRS feed

  • Question

  • Hi.

    When a user dial the number +46 (0)8 621 11 11 i like to have a normalization rule that changes the number to  +4686211111.

    For this I have created the following rule:

    ^(\+\d{2})\(0\)(\d+)$

    $1$2

    This does not work. If I under stand what happends correctly the all spaces and () are removed before my normalization rule is used. That give me a problem since I can not identify the 0 that I want to remove since it does not have the () around it when my rule is used.

    Am I correct and is there a solution for this?

    Thomas

    Thursday, January 6, 2011 1:07 AM

All replies

  • Hi Thomas

     

    I use this rule to do that.

    Pattern : \+?44[\s()\-\./]*0?[\s()\-\./]*(\d\d\d\d)[\s()\-\./]*(\d\d\d\d\d\d)\s*

    Rule : +44$1$2

    Maybe you can alter this to fit your numbers?

    Hope this helps

    Alex.

     

    Thursday, January 6, 2011 8:31 AM