Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Number Plan - Reg EX

    Posted 3 hours ago

    Rochester Regional Health is going to install a brand-new Cisco phone system across all its sites / hospitals.

    I am told that ALL will be able to dial by ext. with a format of - XX-YYYY  2-digit code for the "hospital" and then the extension - which may be variable in length 4-6 maybe.

    Looking to set a Number Plan that can accommodate all of that for the sites created in Cloud.

    Is there a way to write a Regular Expression for this?


    #Telephony

    ------------------------------
    Aaron Montanari
    Operations Performance Analyst Senior
    ------------------------------


  • 2.  RE: Number Plan - Reg EX
    Best Answer

    Posted 3 hours ago
    Edited by Jason Kleitz 3 hours ago

    Hi Aaron 

    -

    Does it really need to have the hyphen "-"?
    Assuming it is necessary or not, you can use this expression: ^\d{2}-?\d{4,6}$..... This will accept both  "12-3456" and "123456"... 
    in normalize use "$1-$2". 
    -
    I believe this will solve it.
    -
    There's this website where you can test expressions for both Match and Substitution.
    If you're not familiar with it, the website is: https://regex101.com/
    -
    Expression ok:
    -
    -
    -
    expression NOK: 
    -



    ------------------------------
    Kaio Oliveira
    GCP - GCQM - GCS - GCA - GCD - GCO - GPE & GPR - GCWM

    PS.: I apologize if there are any mistakes in my English; my primary language is Portuguese-Br.
    ------------------------------



  • 3.  RE: Number Plan - Reg EX

    Posted 3 hours ago

    Thank you so much for this information! - Will Test Thank you!



    ------------------------------
    Aaron Montanari
    Operations Performance Analyst Senior
    ------------------------------