lcMask = chrtran(thePhoneNumber,'0123456789','') && Leave only the unwanted charactersif not empty(lcmask)
thePhoneNumber = chrtran(thePhoneNumber,lcmask,'') && Remove unwanted charactersendif
Glenn
>I am converting phone numbers with variou formats (111) 1111111 and 111-111-1111. What is the best way to remove the ( and - characters? > >Thanks, >Doug