Function to extract a phone number from an address?
687520Oct 21 2010 — edited Oct 22 2010Hello,
I need to implement a function that is able to extract an US/Canadian phone number (in a variety of formats) from an address.
For example I need to extract the phone number from a string like:
Mr. A. Johnson
J & Son Inc.
123 Front st.
tel: (613) - 123 -1234 ext.216
The function should return *(613) - 123 -1234*
Any help will be greatly appreciated.
Regards,
M. Rusu