(11\d{8}\d?) should match on numbers having 8 or 9 digits after the 11
$1 represents everything within the first set of parentheses in the match expression. $2 would be the second set of parentheses. And so on.
So, +55$1 means add +55 in front of whatever matches the pattern within the first set of parentheses
------------------------------
George Ganahl GCP (Genesys Cloud), CCXP
Principal PS Consultant
Genesys
------------------------------
Original Message:
Sent: 06-21-2023 04:56
From: Alastair Pitt
Subject: Dial Plan Assistance with Expressions
Thank you so much @George Ganahl I tried this briefly and it worked!. I have to do some further testing to ensure that other call scenarios work ok, but so far so good.
One thing I did notice is that there are actually Sao Paulo numbers with 8 and 9 digits after 11, so 11xxxxxxxx and 11xxxxxxxxx
I can put a new Dial plan in place i.e (11\d{9}) but is there a way of add it as one i.e (11\d{8,9}) and that would cater for 8 and 9 digits?
Looking at the match expression (11\d{8}) I can understand that syntax fine, but what about the Normalized Number of +55$1 how exactly does that work?
Its always the Normalized expression that I struggle with. What does the $1 mean? add +55 to anything?
Thanks again
------------------------------
Alastair Pitt
Docusign
------------------------------
Original Message:
Sent: 06-20-2023 18:02
From: George Ganahl
Subject: Dial Plan Assistance with Expressions
- yes
- You can try something like:

Which gives:

------------------------------
George Ganahl GCP (Genesys Cloud), CCXP
Principal PS Consultant
Genesys