Original Message:
Sent: 05-01-2026 12:00
From: Kaio Oliveira
Subject: Number Plan - Reg EX
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.
-
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.
Original Message:
Sent: 05-01-2026 11:48
From: Aaron Montanari
Subject: Number Plan - Reg EX
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
------------------------------