[Tutor] Parsing string with variable length delimiter?
Jeffrey F. Bloss
jbloss at alltel.net
Tue Sep 7 18:19:33 CEST 2004
On 9/7/04 12:10 PM -0400, Kent Johnson wrote:
> If you use string.split() with no arguments, it will treat runs of
> whitespace as a single separator. This is different behavior from
> string.split(' '), which treats each individual space as a separator:
<snip>
DOH! Simple and easy. Why didn't I try that when it's plain as day the
separator is _optional_ in the docs?? ;)
Thanks, Kent.
More information about the Tutor
mailing list