It sounds like you are asking what $0, $1, $2 etc., matches?
$0 matches the whole expression
$1 matches the expression within the first set of parentheses
$2 matches the expression portion within the second set of parentheses
etc.
Take a look at the following pages as well:
https://help.mypurecloud.com/articles/regular-expression-language-quick-reference/
https://help.mypurecloud.com/articles/regular-expression-match-and-replace-examples-for-external-trunk-number-transformation/
------------------------------
George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
Technical Adoption Champion
Genesys
2024 Community Member of the Year
------------------------------
Original Message:
Sent: 08-11-2025 12:43
From: Shenbagamoorthy B
Subject: Number Plans Match Data and Normalized format data for User Specific Dial Plan
Hello Jason Kleitz,
Thank you for your response. Example one Local number allow starting from 967 like 967-002-9876. And another example One more Long Distance Code like +1 800-987-6543
------------------------------
Regards,
Shenbagamoorthy B
TechLead
Pointel Inc.,
------------------------------
Original Message:
Sent: 08-11-2025 11:28
From: Jason Kleitz
Subject: Number Plans Match Data and Normalized format data for User Specific Dial Plan
Hello Shenbagamoorthy,
Can you give me an example number that you are trying to match? The regex sample that you posted is looking for a 1, any number from 1 to 9, and then 10 more digits.
------------------------------
Jason Kleitz
Online Community Manager/Moderator