Skip to content

Commit 047d3d8

Browse files
committed
Tweak README.md
1 parent 979844b commit 047d3d8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Example Usage
1010
-------------
1111

1212
The main object that the library deals with is a `PhoneNumber` object. You can create this from a string
13-
representing a phone number using the `parse` function, but you also need to specify the country that the
14-
phone number is from.
13+
representing a phone number using the `parse` function, but you normally also need to specify the country
14+
that the phone number is from (unless the number is in E.164 format).
1515

1616
>>> import phonenumbers
1717
>>> x = phonenumbers.parse("+442083661177", None)
@@ -62,7 +62,8 @@ applied as the user types. The `AsYouTypeFormatter` object allows this.
6262

6363
Sometimes, you've got a larger block of text that may or may not have some phone numbers inside it. For this,
6464
the `PhoneNumberMatcher` object provides the relevant functionality; you can iterate over it to retrieve a
65-
sequence of `PhoneNumberMatch` objects.
65+
sequence of `PhoneNumberMatch` objects. Each of these match objects holds a `PhoneNumber` object together
66+
with information about where the match occurred in the original string.
6667

6768
>>> text = "Call me at 510-748-8230 if it's before 9:30, or on 703-4800500 after 10am."
6869
>>> for match in phonenumbers.PhoneNumberMatcher(text, "US"):

0 commit comments

Comments
 (0)