From 8dbfd70b8796162ace8ab25e932ff6b05e147e26 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Mon, 11 Jan 2010 17:38:43 -0500 Subject: [PATCH] typo [thanks GG] --- regular-expressions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regular-expressions.html b/regular-expressions.html index 5be0d59..b921e2c 100755 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -181,7 +181,7 @@ body{counter-reset:h1 5}
  • This matches the start of the string, and then the first optional M, but not the second and third M (but that’s okay because they’re optional), and then the end of the string.
  • This matches the start of the string, and then the first and second optional M, but not the third M (but that’s okay because it’s optional), and then the end of the string.
  • This matches the start of the string, and then all three optional M, and then the end of the string. -
  • This matches the start of the string, and then all three optional M, but then does not match the the end of the string (because there is still one unmatched M), so the pattern does not match and returns None. +
  • This matches the start of the string, and then all three optional M, but then does not match the end of the string (because there is still one unmatched M), so the pattern does not match and returns None.
     >>> pattern = '^M{0,3}$'