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}$'