Hi Does anyone know of an algorythm to extract the country code from a number. I understand that the country codes are of different length and there is no fixed length of local area code or phone numbers. I am sure there is a way, if not how to telephone switches handle them Umar.