[Tutor] Whitespace

Lloyd Kvam lkvam@venix.com
Wed, 14 Nov 2001 12:48:25 -0500


http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65225
ASPN : Python Cookbook : Reversing a String by Words or Characters

This includes examples for splitting strings.  The regular expression 
split at the end may be close to what you actually want.  I assume you 
are really trying to "tokenize" a line of text.

There is a tokenize module included with Python.

Mike Yuen wrote:

> I'm not understanding how "whitespace" works for strings. 
> 
> I thought we could use it like split, lower, etc.
> 
> Can someone provide an example of how this works?
> 
> Thank,
> M
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 


-- 
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358

voice: 
603-443-6155
fax: 
801-459-9582