diff -r 3e16c8c34e69 Doc/howto/regex.rst --- a/Doc/howto/regex.rst Sat Nov 23 21:19:43 2013 +0100 +++ b/Doc/howto/regex.rst Mon Nov 25 22:33:10 2013 +0200 @@ -272,7 +272,7 @@ >>> import re >>> p = re.compile('ab*') >>> p #doctest: +ELLIPSIS - <_sre.SRE_Pattern object at 0x...> + re.compile('ab*') :func:`re.compile` also accepts an optional *flags* argument, used to enable various special features and syntax variations. We'll go over the available @@ -384,7 +384,7 @@ >>> import re >>> p = re.compile('[a-z]+') >>> p #doctest: +ELLIPSIS - <_sre.SRE_Pattern object at 0x...> + re.compile('[a-z]+') Now, you can try matching various strings against the RE ``[a-z]+``. An empty string shouldn't match at all, since ``+`` means 'one or more repetitions'.