/mcpTable 8: Examples for Converting LDAP Phone Numbers to Unity Connection Extensions Replacement P Regular Expression for LDAP Phone Number Pattern Example Conversion Operation $1 (.) Use LDAP phone number as Unity Connection extension $1 .(\d{4}) Use the last four digits of LDAP phone number as Unity Connection extension $1 (\d{4}).* Use the first four digits of LDAP phone number as Unity Connection extension. $18 ^(.) Append 8 to the end of LDAP phone number 9$1 .(\d{4}) Append 9 to the left of the last four digits of LDAP phone number $18 (.) Append 88 to the end of LDAP phone number $1555$2 (\d{3}).(\d{4}) Use the digits 555 between the first three digits and the last four digits of LDAP phone number $1 \d{3,6}(\d{4}) Use the last four digits of LDAP phone number as Unity Connection extension if LDAP phone number is between seven and ten digits long $1 206.*(\d{4}) Use the last four digits of LDAP phone number as Unity Connection extension if LDAP phone number starts with 206 +9$1 (.+) Prepend +9 to the left of the LDAP phone number 85$1 \d{5}(\d{5}) Prepend 85 to the left of the rightmost 5 digits of LDAP phone number if LDAP phone number is 10-digit long $1 011(\d{10}) Remove the leftmost three digits of LDAP phone number if LDAP phone number is 13 digits long and the first three digits are 011 52$1 206\d{3}(\d{4}) Remove the leftmost six digits of LDAP phone number and then prepend 52 to the remaining digits if LDAP phone number is 10 digits long and the first three digits are 206 Adding a Regular Expression and Replacement Pattern Procedure Step 1 In Cisco Unity Connection Administration, expand System Settings > LDAP and select Phone Number Conversion. Step 2 On the Phone Number Conversion page, enter the values in the required fields. (For information on each field, see Help> This Page). Step 3 Select Save. System Administration Guide 158 LDAP Adding a Regular Expression and Replacement Pattern