Guido van Rossum
2b2b3f9bcb
Fix two bugs:
...
(1) maxsplit was ignored in split().
(2) groups() would return a string instead of a singleton tuple when
there was only one group.
1998-01-12 18:57:53 +00:00
Guido van Rossum
dfa6790bd6
New re version from AMK
1997-12-08 17:12:06 +00:00
Guido van Rossum
af8d2bf4d8
Bugfix in match() -- the number of registers shouldn't be divided by two!
1997-10-27 18:17:19 +00:00
Guido van Rossum
5bc5b14f6d
Checking in AMK's latest installement.
1997-10-08 02:08:04 +00:00
Guido van Rossum
c6e8fd6de7
Temporary fix to valid_identifier().
1997-10-07 14:51:18 +00:00
Guido van Rossum
bf9d353bab
New "re" regular expression support.
...
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.
1997-10-06 14:45:17 +00:00
Guido van Rossum
827ea7cf5d
Last minut changes for \B, \S (?). AMK.
1997-08-15 15:44:23 +00:00
Guido van Rossum
c4d6c4d950
OK, reop is safe again.
1997-08-14 21:23:07 +00:00
Guido van Rossum
257c772afa
Comment out use of reop.expand_escape and reop._expand until their
...
bugginess has been fixed.
1997-08-14 19:33:06 +00:00
Guido van Rossum
95e8053a9f
1.5a3 prerelease 1 from AMK
1997-08-13 22:34:14 +00:00
Guido van Rossum
6af4abdba0
Various changes by AMK, e.g. remove \e, \cX, add \v
1997-08-13 03:25:34 +00:00
Guido van Rossum
71fa97c60d
Jeffrey's latest -- reorder my chages somewhat,
...
removed some of his own cruft. Added \g<...> references in replacement text.
1997-07-18 04:26:03 +00:00
Guido van Rossum
9e18ec7dc9
Correctly implement sub, subn, and split. Also correct and augment
...
the cache code.
1997-07-17 22:39:13 +00:00
Guido van Rossum
a4f1a78b6e
Jeffrey's next installment
1997-07-17 22:38:10 +00:00
Guido van Rossum
a0e4c1bffc
Jeffrey's latest -- seems to solve most problems!
1997-07-17 14:52:48 +00:00
Guido van Rossum
26d80e6714
Correct inf. while loop.
1997-07-15 18:59:04 +00:00
Guido van Rossum
9f845ec64b
More changes by Jeffrey.
1997-07-15 18:11:42 +00:00
Guido van Rossum
531097502c
Fix group() -- should be tuple even when re has exactly one group.
1997-07-15 15:40:29 +00:00
Guido van Rossum
09bcfd649a
Jeffrey's latest -- almost there.
1997-07-15 15:38:20 +00:00
Guido van Rossum
04a1d74229
Jeffrey's newest
1997-07-15 14:38:13 +00:00
Guido van Rossum
5d6de256d5
New from Jeffrey; small nits.
1997-07-11 21:10:17 +00:00
Guido van Rossum
8a9a4a2336
Jeffrey's latest.
1997-07-11 20:48:25 +00:00
Guido van Rossum
65c28b7efb
Removed debug print in set construction.
...
Changed some '==' to 'in' (Tim Peters).
1997-07-11 11:10:44 +00:00
Guido van Rossum
63e18195b8
New version from Jeffrey after I complained about some glaring bugs.
1997-07-11 11:08:38 +00:00
Guido van Rossum
5ca1b711b5
Straight from Jeffrey Ollie's web page.
1997-07-10 21:00:31 +00:00