Options

Translation Rules Query

controlcontrol Member Posts: 309
Been looking at an article and have a query on the following...

rule 2 /^123/ /456/


rule 3 /^123$/ /456/

It says

rule 2 replaces any number starting with 123 with a 456
rule 3 replaces only the number 123 as the source number with 456

Aren't these both the same thing? I'm not sure on the difference between Rule 1 and Rule 2. Could someone provide an example of these rules being utilized, hopefully seeing it will make it clearer?

Thanks

Comments

  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    The '^' indicates the begining of the string and the '$' indicates the end. Without the '$' it matches the string and anythng following.

    So for example the string '123' would match both, but '1234' would only match the first.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    shodownshodown Member Posts: 2,271
    ^^^

    I forgot you SP guys/gals can get pretty wild with the expressions during BGP configurations
    Currently Reading

    CUCM SRND 9x/10, UCCX SRND 10x, QOS SRND, SIP Trunking Guide, anything contact center related
Sign In or Register to comment.