On Monday 07 October 2002 04:50, [EMAIL PROTECTED] wrote: > Hi, > > Assuming you've parsed your CSV file and are just looking for the phone > number which is in a string... > > If your telephone numbers are north-american only, then the problem is > fairly trivial because you always have the same pattern for numbers (if > people did not throw in extention numbers, that is).
There is another issue for north america. Some areas use only 7 digit dialing for numbers within the same area code. Some use 10 digits, and some will use the full 11. When people enter their phone numbers they may only enter the 7 digit number (no area code) or the 11 digit number country code-areacode-phone number. Depending what you want to do with the data once you have it, you may need to take this into account. I once spent several hours for a client programming their fax software to handle every combination of 7-digit, 10-digit, and 11-digit based on the prefix (first 3 digits of phone number following the area code). _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs