Here's a puzzle...

Glen Wheeler wheelege at tsn.cc
Sat Jul 21 21:45:44 EDT 2001


> I'm trying to split the following string called data into four variables:
>
> :Angel PRIVMSG Wiz :here is my message!
>
> <snip!>

  Surely you could just use string.split, then chop off the colon(s)?

  Of course that will only work if your given data is consistent, but if you
were going to do slices, it probably is.

  Good luck,
  Glen.





More information about the Python-list mailing list