Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adds an optional flags argument to re.split, re.sub and re.subn to be | Gregory P. Smith | 2009-03-02 | 1 | -6/+6 |
| | | | | consistent with the other re module functions. | ||||
* | #4185: clarify escape behavior of replacement strings. | Georg Brandl | 2009-01-01 | 1 | -2/+4 |
| | |||||
* | Remove the use of callable() in re to silence warnings under -3. | Brett Cannon | 2008-08-04 | 1 | -1/+1 |
| | |||||
* | Revert copy_reg -> copyreg rename. | Georg Brandl | 2008-05-20 | 1 | -2/+2 |
| | |||||
* | Added module stub for copy_reg renaming in 3.0. | Alexandre Vassalotti | 2008-05-11 | 1 | -2/+2 |
| | | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact. | ||||
* | In the experimental 'Scanner' feature, the group count was set wrong. | Guido van Rossum | 2008-02-05 | 1 | -1/+1 |
| | |||||
* | Add missing things in re docstring. | Georg Brandl | 2008-01-26 | 1 | -1/+6 |
| | |||||
* | Clarify $ behavior in re docstring. #1631394. | Georg Brandl | 2008-01-21 | 1 | -3/+6 |
| | |||||
* | Fix issue 1661: Flags argument silently ignored in re functions with ↵ | Raymond Hettinger | 2007-12-19 | 1 | -0/+2 |
| | | | | compiled regexes. | ||||
* | Rename sre.py -> re.py | Neal Norwitz | 2006-03-16 | 1 | -0/+315 |
| | |||||
* | Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps). | Neal Norwitz | 2006-03-16 | 1 | -6/+0 |
| | |||||
* | Give people who run "pydoc re" a clue. | Neil Schemenauer | 2003-01-31 | 1 | -1/+1 |
| | |||||
* | point people to the Python bug tracker, rather than to a mail | Fredrik Lundh | 2002-10-19 | 1 | -16/+0 |
| | | | | account I hardly ever use... | ||||
* | Add 'engine' back. IDLE used this, others might have copied it from | Guido van Rossum | 2002-07-28 | 1 | -0/+2 |
| | | | | there. | ||||
* | Whitespace normalization. | Tim Peters | 2002-04-16 | 1 | -1/+0 |
| | |||||
* | Remove support for importing 'pre' module | Andrew M. Kuchling | 2002-04-10 | 1 | -14/+2 |
| | |||||
* | Added docstrings by Neal Norwitz. This closes SF bug #450980. | Fred Drake | 2001-09-04 | 1 | -3/+2 |
| | |||||
* | bunch more __all__ lists | Skip Montanaro | 2001-02-15 | 1 | -0/+2 |
| | | | | | | 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) | ||||
* | My fix to the URL accidentally also switched back to the "pre" module. | Guido van Rossum | 2000-08-01 | 1 | -2/+2 |
| | | | | Undo that! | ||||
* | Replace the jitterbug page with the SF Bug Tracker page. | Guido van Rossum | 2000-08-01 | 1 | -3/+3 |
| | |||||
* | replaced <some suitable mail address> with something slightly | Fredrik Lundh | 2000-06-30 | 1 | -4/+25 |
| | | | | more suitable. | ||||
* | Switch to sre for regular expression matching (the new mini-re module | Guido van Rossum | 2000-06-30 | 1 | -650/+9 |
| | | | | | is actually by Fredrik Lundh). This will break the re tests -- Fredrik will fix this before the final release. | ||||
* | Correct typo in module doc string doscovered by Jonathan Giddy. | Guido van Rossum | 1999-11-15 | 1 | -1/+1 |
| | |||||
* | Patch by Jeffrey Chang to add docstrings everywhere. | Guido van Rossum | 1999-07-09 | 1 | -31/+314 |
| | | | | The text is condensed from the library manual. | ||||
* | The .subn() method wasn't setting _num_regs, which is used by the .groups() | Andrew M. Kuchling | 1998-08-21 | 1 | -0/+1 |
| | | | | | method, so .groups() didn't work inside the replacement function called by re.sub. One-line fix: set self._num_regs inside subn(). | ||||
* | Modest speed improvement to escape() by Piet van Oostrum. | Guido van Rossum | 1998-07-20 | 1 | -5/+5 |
| | |||||
* | Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() by | Guido van Rossum | 1998-07-17 | 1 | -38/+71 |
| | | | | | | | | not calling self.search(); instead, call self.code.match() directly and interpret the list of registers it returns directly. This saves the overhead of instantiating a MatchObject for each hit, basically inlining search() as well as group(). When a MatchObject is still needed, one is allocated and reused for the duration of the scan. | ||||
* | Added findall() to RegexObject -- return a list of all matches in a | Guido van Rossum | 1998-06-29 | 1 | -16/+61 |
| | | | | | | string. Added groupdict() to MatchObject -- return the named groups as a dict. Added default argument to groups() to specify what to return for unmatching groups; groupdict() also has this. | ||||
* | Remove Emacs and #! cruft. | Guido van Rossum | 1998-05-29 | 1 | -4/+0 |
| | |||||
* | AMK's latest | Guido van Rossum | 1998-04-03 | 1 | -6/+6 |
| | |||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -177/+177 |
| | |||||
* | Fix for literal null bytes -- these must be replaced by the four | Guido van Rossum | 1998-02-19 | 1 | -2/+3 |
| | | | | characters \, 0, 0, 0. | ||||
* | Fix two bugs: | Guido van Rossum | 1998-01-12 | 1 | -5/+8 |
| | | | | | | | (1) maxsplit was ignored in split(). (2) groups() would return a string instead of a singleton tuple when there was only one group. | ||||
* | New re version from AMK | Guido van Rossum | 1997-12-08 | 1 | -39/+93 |
| | |||||
* | Bugfix in match() -- the number of registers shouldn't be divided by two! | Guido van Rossum | 1997-10-27 | 1 | -1/+1 |
| | |||||
* | Checking in AMK's latest installement. | Guido van Rossum | 1997-10-08 | 1 | -193/+0 |
| | |||||
* | Temporary fix to valid_identifier(). | Guido van Rossum | 1997-10-07 | 1 | -8/+7 |
| | |||||
* | New "re" regular expression support. | Guido van Rossum | 1997-10-06 | 1 | -1145/+67 |
| | | | | | | The new re module was written by Andrew Kuchling and uses the pcre code in ../Modules/. The old re module has been renamed to re1, just in case you need it for comparison. | ||||
* | Last minut changes for \B, \S (?). AMK. | Guido van Rossum | 1997-08-15 | 1 | -2/+2 |
| | |||||
* | OK, reop is safe again. | Guido van Rossum | 1997-08-14 | 1 | -2/+2 |
| | |||||
* | Comment out use of reop.expand_escape and reop._expand until their | Guido van Rossum | 1997-08-14 | 1 | -2/+2 |
| | | | | bugginess has been fixed. | ||||
* | 1.5a3 prerelease 1 from AMK | Guido van Rossum | 1997-08-13 | 1 | -10/+25 |
| | |||||
* | Various changes by AMK, e.g. remove \e, \cX, add \v | Guido van Rossum | 1997-08-13 | 1 | -19/+22 |
| | |||||
* | Jeffrey's latest -- reorder my chages somewhat, | Guido van Rossum | 1997-07-18 | 1 | -95/+71 |
| | | | | removed some of his own cruft. Added \g<...> references in replacement text. | ||||
* | Correctly implement sub, subn, and split. Also correct and augment | Guido van Rossum | 1997-07-17 | 1 | -10/+88 |
| | | | | the cache code. | ||||
* | Jeffrey's next installment | Guido van Rossum | 1997-07-17 | 1 | -87/+135 |
| | |||||
* | Jeffrey's latest -- seems to solve most problems! | Guido van Rossum | 1997-07-17 | 1 | -37/+52 |
| | |||||
* | Correct inf. while loop. | Guido van Rossum | 1997-07-15 | 1 | -5/+20 |
| | |||||
* | More changes by Jeffrey. | Guido van Rossum | 1997-07-15 | 1 | -23/+51 |
| | |||||
* | Fix group() -- should be tuple even when re has exactly one group. | Guido van Rossum | 1997-07-15 | 1 | -1/+4 |
| |