From a7b6bfcfb28d23e242914735e93a95695f8e8b75 Mon Sep 17 00:00:00 2001 From: Ryota Yushina Date: Sun, 19 Aug 2018 16:07:52 +0900 Subject: [PATCH] applying issue #10 --- regular-expressions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regular-expressions.html b/regular-expressions.html index abdf9fa8..5895765f 100755 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -408,7 +408,7 @@

Case study: Parsing Phone Numbers

''', re.VERBOSE) >>> phonePattern.search('work 1-(800) 555.1212 #1234').groups() ('800', '555', '1212', '1234') ->>> phonePattern.search('800-555-1212') +>>> phonePattern.search('800-555-1212').groups() ('800', '555', '1212', '')
  1. Other than being spread out over multiple lines, this is exactly the same regular expression as the last step, so it’s no surprise that it parses the same inputs.