using string.splitfields

Thomas Weholt u970130 at studbo.hit.no
Sun Oct 10 22:18:31 EDT 1999


Hi,

Just wondering how I could use more field-separators when I use the
string.splitfield method.

Example :

import string
s = "this.is+a!string"
sep = ".+!"

res = string.splitfields(s, sep)

The result should be 
[this, is, a ,string]

But it`s not. Why? Why?!

Thomas




More information about the Python-list mailing list