Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmiNdevulapalli authored Nov 5, 2017
1 parent b3860a5 commit ccb3588
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# PhoneNumberCorrecting
To correct give number to US E.164 format

Method:
The method in this program takes user input (String) and compares first with regular expression and then replaces
the string with desired format(E.164 format).

If the entered number is valid it formats and returns the formatted number, else it returns null.

Solution Decided:-
example:
if user enters : 1231231230
it formats to : (123) 123-1230

It is not mentioned for international or local. Hence, it is limited to number with area code as prefix.

# WebsiteReferenceForRegularExpressions
https://www.freeformatter.com/java-regex-tester.html

0 comments on commit ccb3588

Please sign in to comment.