newbie question

Terry Reedy tjreedy at home.com
Fri Nov 2 08:55:16 EST 2001


>     #need to parse text.  Would be nice to have \n and other
punctuation
> removed.

I would use maketrans() and translate() functions of string module to
change all such to spaces before splitting on whitespace.

Terry J. Reedy






More information about the Python-list mailing list