summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
Commit message (Collapse)AuthorAgeFilesLines
* Correct typo in module doc string doscovered by Jonathan Giddy.Guido van Rossum1999-11-151-1/+1
|
* Patch by Jeffrey Chang to add docstrings everywhere.Guido van Rossum1999-07-091-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. Kuchling1998-08-211-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 Rossum1998-07-201-5/+5
|
* Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() byGuido van Rossum1998-07-171-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 aGuido van Rossum1998-06-291-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 Rossum1998-05-291-4/+0
|
* AMK's latestGuido van Rossum1998-04-031-6/+6
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-177/+177
|
* Fix for literal null bytes -- these must be replaced by the fourGuido van Rossum1998-02-191-2/+3
| | | | characters \, 0, 0, 0.
* Fix two bugs:Guido van Rossum1998-01-121-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 AMKGuido van Rossum1997-12-081-39/+93
|
* Bugfix in match() -- the number of registers shouldn't be divided by two!Guido van Rossum1997-10-271-1/+1
|
* Checking in AMK's latest installement.Guido van Rossum1997-10-081-193/+0
|
* Temporary fix to valid_identifier().Guido van Rossum1997-10-071-8/+7
|
* New "re" regular expression support.Guido van Rossum1997-10-061-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 Rossum1997-08-151-2/+2
|
* OK, reop is safe again.Guido van Rossum1997-08-141-2/+2
|
* Comment out use of reop.expand_escape and reop._expand until theirGuido van Rossum1997-08-141-2/+2
| | | | bugginess has been fixed.
* 1.5a3 prerelease 1 from AMKGuido van Rossum1997-08-131-10/+25
|
* Various changes by AMK, e.g. remove \e, \cX, add \vGuido van Rossum1997-08-131-19/+22
|
* Jeffrey's latest -- reorder my chages somewhat,Guido van Rossum1997-07-181-95/+71
| | | | removed some of his own cruft. Added \g<...> references in replacement text.
* Correctly implement sub, subn, and split. Also correct and augmentGuido van Rossum1997-07-171-10/+88
| | | | the cache code.
* Jeffrey's next installmentGuido van Rossum1997-07-171-87/+135
|
* Jeffrey's latest -- seems to solve most problems!Guido van Rossum1997-07-171-37/+52
|
* Correct inf. while loop.Guido van Rossum1997-07-151-5/+20
|
* More changes by Jeffrey.Guido van Rossum1997-07-151-23/+51
|
* Fix group() -- should be tuple even when re has exactly one group.Guido van Rossum1997-07-151-1/+4
|
* Jeffrey's latest -- almost there.Guido van Rossum1997-07-151-30/+71
|
* Jeffrey's newestGuido van Rossum1997-07-151-152/+271
|
* New from Jeffrey; small nits.Guido van Rossum1997-07-111-2/+12
|
* Jeffrey's latest.Guido van Rossum1997-07-111-50/+71
|
* Removed debug print in set construction.Guido van Rossum1997-07-111-4/+3
| | | | Changed some '==' to 'in' (Tim Peters).
* New version from Jeffrey after I complained about some glaring bugs.Guido van Rossum1997-07-111-6/+6
|
* Straight from Jeffrey Ollie's web page.Guido van Rossum1997-07-101-0/+1137