how to read special characters in phone number ?
Posted: Tue Apr 26, 2011 2:35 pm
Hi ,
I have to read the phone number from the data and find if there are any special charaters. If so then I need it to default it depending on the special characters. Phone number in the data is displayed as "xxx-xxx-xxxx". Can you please guide how to implement the logic to read the entire phone number and default it rather than checking the area code, phone number separately .
Ex: 123-*&^-1234 or @#$-123-1234 . It should read the entire phone number and default it instead of implementing logic for area code and number separatley .
I have to read the phone number from the data and find if there are any special charaters. If so then I need it to default it depending on the special characters. Phone number in the data is displayed as "xxx-xxx-xxxx". Can you please guide how to implement the logic to read the entire phone number and default it rather than checking the area code, phone number separately .
Ex: 123-*&^-1234 or @#$-123-1234 . It should read the entire phone number and default it instead of implementing logic for area code and number separatley .