How do I remove digits or non-digits using regex for LDAP settings?


To remove digits/non-digits from the telephone attribute in Active Directory in order to use it for the coSpaceCallIdMapping, use either:

$telephoneNumber|'/[^[:digit:]]//g'$ 

or 

$telephoneNumber|'/[^0-9]//g'$

Note: GNU ERE is supported for regex expressions.

Last update:
14-Nov-2018
FAQ ID:
1414