Commit Graph

34 Commits

Author SHA1 Message Date
Georg Brandl e0289a34bd Merged revisions 82832,82834 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82832 | georg.brandl | 2010-07-12 11:00:29 +0200 (Mo, 12 Jul 2010) | 1 line

  Take care of duplicate target name warnings.
........
  r82834 | georg.brandl | 2010-07-12 11:06:13 +0200 (Mo, 12 Jul 2010) | 1 line

  Use raw string literals for regexes containing backlash.
........
2010-08-01 21:44:38 +00:00
R. David Murray a63f9b674b Merged revisions 82771 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82771 | r.david.murray | 2010-07-10 10:23:36 -0400 (Sat, 10 Jul 2010) | 2 lines

  Add missing docs for re module 'purge' function.
........
2010-07-10 14:25:18 +00:00
Georg Brandl b1a14051b7 Put docs for RegexObject.search() before RegexObject.match() to mirror re.search() and re.match() order. 2010-06-01 07:25:23 +00:00
Georg Brandl f93ce0c1f5 #8785: less confusing description of regex.find*. 2010-05-22 08:17:23 +00:00
Eric Smith 368ede83d9 Issue 8671: Whitespace fix. 2010-05-09 14:04:59 +00:00
Brian Curtin fbe519975b Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana. 2010-03-25 23:48:54 +00:00
Ezio Melotti d0ff51c43f #7685: typo 2010-01-13 00:25:03 +00:00
Georg Brandl 04fd324fe3 #6679: Remove mention that sub supports no flags. 2009-08-13 07:48:05 +00:00
Mark Dickinson fe67bd9168 Issue #6561: '\d' regular expression should not match characters of
category [No]; only those of category [Nd].  (Backport of r74237
from py3k.)
2009-07-28 20:35:03 +00:00
Georg Brandl 74f8fc0b1b #6576: fix cross-refs in re docs. 2009-07-26 13:36:39 +00:00
Georg Brandl 5206086e0d #4882: document named group behavior a bit better. 2009-03-31 19:06:57 +00:00
Georg Brandl 382edff289 #5519: remove reference to Kodos, which seems dead. 2009-03-31 15:43:20 +00:00
Georg Brandl 545a134916 Fix markup in re docs and give a mail address in regex howto, so that
the recommendation to send suggestions to the author can be followed.
2009-03-15 21:59:37 +00:00
Gregory P. Smith ae91d0907d Adds an optional flags argument to re.split, re.sub and re.subn to be
consistent with the other re module functions.
2009-03-02 05:13:57 +00:00
Gregory P. Smith 0261e5d0b6 The note about caching of regular expression objects was incorrect ReST and
thus invisible in the compiled documentation.  Fixed.  Also I cleaned up the
wording.
2009-03-02 04:53:24 +00:00
Georg Brandl c62ef8b4d9 Remove trailing whitespace. 2009-01-03 20:55:06 +00:00
Georg Brandl b46f0d788c #4408: document regex.groups. 2008-12-05 07:49:49 +00:00
Georg Brandl b46d6ff279 Add ordering info for findall and finditer. 2008-07-19 13:48:44 +00:00
Mark Summerfield 700a635091 Added a note to [] that special forms & special chars lose their meaning
and backrefs can't be used inside []
2008-05-31 13:05:34 +00:00
Georg Brandl 2e829cb769 Add Kodos as a re reference. 2008-05-09 06:36:07 +00:00
Georg Brandl 838b4b0145 No need to specify explicit "doctest_block" anymore. 2008-03-22 13:07:06 +00:00
Georg Brandl 6199e32a74 Make doctests in re docs usable with sphinx' doctest. 2008-03-22 12:04:26 +00:00
Georg Brandl 70992c3c83 Expand on re.split behavior with captured expressions. 2008-03-06 07:19:15 +00:00
Georg Brandl 907a720f89 A lot more typo fixes by Ori Avtalion. 2008-02-22 12:31:45 +00:00
Georg Brandl 1cf0522f26 Convert external links to internal links. Fixes #2010. 2008-02-05 12:01:24 +00:00
Amaury Forgeot d'Arc d08a8ebf2a Closing issue1761.
Surprising behaviour of the "$" regexp: it matches the
end of the string, AND just before the newline at the end
of the string::

    re.sub('$', '#', 'foo\n') == 'foo#\n#'

Python is consistent with Perl and the pcre library, so
we just document it.
Guido prefers "\Z" to match only the end of the string.
2008-01-10 21:59:42 +00:00
Georg Brandl b19be571e0 Some cleanup in the docs. 2007-12-29 10:57:00 +00:00
Georg Brandl d6b20dc54f Better re.split examples. 2007-12-06 09:45:39 +00:00
Georg Brandl b8df156ab5 Add examples to re docs. Written for GHOP by Dan Finnie. 2007-12-05 18:30:48 +00:00
Georg Brandl e7a0990113 Add :term:s for iterator. 2007-10-21 12:10:28 +00:00
Georg Brandl ba2e519082 #1208: document match object's boolean value. 2007-09-27 06:26:58 +00:00
Skip Montanaro 222907da56 Added a note and examples to explain that re.split does not split on an
empty pattern match. (issue 852532).
2007-09-01 17:40:03 +00:00
Georg Brandl 604c121eee Bug #1625381: clarify match vs search introduction. 2007-08-23 21:36:05 +00:00
Georg Brandl 8ec7f65613 Move the 2.6 reST doc tree in place. 2007-08-15 14:28:01 +00:00