Barry Warsaw
b67a25c079
Store the current regex syntax along with the regular expression
...
string as the key to the cache. This means that changing the syntax
will return the correct compiled pattern.
clear_cache(): New function.
1997-02-18 18:52:55 +00:00
Guido van Rossum
7a7d5d8fcf
Use splitx() in capwords() (bugfix after interface change for split()).
...
Give capwords a default pattern argument which will recognize words as
sequeces of [a-zA-Z0-9_].
1996-08-09 21:32:29 +00:00
Guido van Rossum
a59d3e6d50
Changed split() to be compatible with changes to string.split(): the
...
optional third argument gives a maximum number of delimiters to parse.
The new function splitx() is like split() but returns a list
containing the words as well as the delimiters.
1996-08-08 18:39:18 +00:00
Guido van Rossum
4cc4ab1735
Add third arg to split(). Add capwords() -- which uses that.
1996-06-11 18:45:15 +00:00
Guido van Rossum
9e6aa9d55b
avoid eval() like the plague
1996-05-28 23:01:28 +00:00
Guido van Rossum
7a461e5aaf
New module regsub contains sub(), gsub() and split() as in nawk.
...
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
1992-09-20 21:41:09 +00:00