Commit Graph

57 Commits

Author SHA1 Message Date
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
Georg Brandl
2adde0551a #4185: clarify escape behavior of replacement strings. 2009-01-01 12:00:19 +00:00
Brett Cannon
d9636e17cc Remove the use of callable() in re to silence warnings under -3. 2008-08-04 21:07:59 +00:00
Georg Brandl
dffbf5f542 Revert copy_reg -> copyreg rename. 2008-05-20 07:49:57 +00:00
Alexandre Vassalotti
9510e4a9f8 Added module stub for copy_reg renaming in 3.0.
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
2008-05-11 08:25:28 +00:00
Guido van Rossum
212861c54f In the experimental 'Scanner' feature, the group count was set wrong. 2008-02-05 17:32:15 +00:00
Georg Brandl
422319937e Add missing things in re docstring. 2008-01-26 11:00:18 +00:00
Georg Brandl
e42169124f Clarify $ behavior in re docstring. #1631394. 2008-01-21 17:29:23 +00:00
Raymond Hettinger
80016c9555 Fix issue 1661: Flags argument silently ignored in re functions with compiled regexes. 2007-12-19 18:13:31 +00:00
Neal Norwitz
94a9c09e10 Rename sre.py -> re.py 2006-03-16 06:30:02 +00:00
Neal Norwitz
559e88be28 Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps). 2006-03-16 06:27:37 +00:00
Neil Schemenauer
1e6ada0533 Give people who run "pydoc re" a clue. 2003-01-31 00:35:58 +00:00
Fredrik Lundh
37a0982278 point people to the Python bug tracker, rather than to a mail
account I hardly ever use...
2002-10-19 20:19:10 +00:00
Guido van Rossum
ad9eba7a69 Add 'engine' back. IDLE used this, others might have copied it from
there.
2002-07-28 19:04:07 +00:00
Tim Peters
863ac44b74 Whitespace normalization. 2002-04-16 01:38:40 +00:00
Andrew M. Kuchling
7fd1c8c880 Remove support for importing 'pre' module 2002-04-10 21:15:40 +00:00
Fred Drake
b8f2274985 Added docstrings by Neal Norwitz. This closes SF bug #450980. 2001-09-04 19:10:20 +00:00
Skip Montanaro
0de65807e6 bunch more __all__ lists
also modified check_all function to suppress all warnings since they aren't
relevant to what this test is doing (allows quiet checking of regsub, for
instance)
2001-02-15 22:15:14 +00:00
Guido van Rossum
fb06539e99 My fix to the URL accidentally also switched back to the "pre" module.
Undo that!
2000-08-01 21:22:16 +00:00
Guido van Rossum
8c74335807 Replace the jitterbug page with the SF Bug Tracker page. 2000-08-01 20:28:33 +00:00
Fredrik Lundh
ef7bae6b2f replaced <some suitable mail address> with something slightly
more suitable.
2000-06-30 22:01:36 +00:00
Guido van Rossum
2850d18615 Switch to sre for regular expression matching (the new mini-re module
is actually by Fredrik Lundh).  This will break the re tests --
Fredrik will fix this before the final release.
2000-06-30 16:25:20 +00:00
Guido van Rossum
77980a731c Correct typo in module doc string doscovered by Jonathan Giddy. 1999-11-15 14:19:15 +00:00
Guido van Rossum
6ebb387a08 Patch by Jeffrey Chang to add docstrings everywhere.
The text is condensed from the library manual.
1999-07-09 21:15:32 +00:00
Andrew M. Kuchling
9a80e00cac The .subn() method wasn't setting _num_regs, which is used by the .groups()
method, so .groups() didn't work inside the replacement function
	called by re.sub.  One-line fix: set self._num_regs inside subn().
1998-08-21 18:39:38 +00:00