Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the Sonus SBC 1000/2000 system

Spacevars
0product
, Regular Expressions can be used for phone number matching and transformation. Use of Regular Expressions for phone number transformation is supported in the Transformation Tables .

...

Note

The use of caret symbol (^) for beginning of a number-matching pattern and the dollar sign ($) for the end of the pattern is implicit. The regular expression rule will work with or without them.

 

Pagebreak

Detailed Examples

Example 1: Using Regular Expression for Route Match

...

  1. Select Using Regular Expression option.
  2. Match Rule:

    Code Block
    none
    none
    \+(.*)
  3. Transformation:

    Code Block
    none
    none
    \1

    In this example, any destination number prefixed with a +-sign (plus-sign) as input matches the Match Rule and the output will be the same number without the +-sign.

    Expression Input

    Expression Output

    +914412345678

    914412345678

    Pagebreak

Example 5: Replacing "011" (international prefix) with +-sign

...