mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
one more typo [h/t G.P.]
This commit is contained in:
@@ -375,7 +375,7 @@ body{counter-reset:h1 4}
|
||||
<ol>
|
||||
<li>Note the lack of <code>^</code> in this regular expression. You are not matching the beginning of the string anymore. There’s nothing that says you need to match the entire input with your regular expression. The regular expression engine will do the hard work of figuring out where the input string starts to match, and go from there.
|
||||
<li>Now you can successfully parse a phone number that includes leading characters and a leading digit, plus any number of any kind of separators around each part of the phone number.
|
||||
<li>Sanity check. this still works.
|
||||
<li>Sanity check. This still works.
|
||||
<li>That still works too.
|
||||
</ol>
|
||||
<p>See how quickly a regular expression can get out of control? Take a quick glance at any of the previous iterations. Can you tell the difference between one and the next?
|
||||
|
||||
Reference in New Issue
Block a user