splitting a string into 2 new strings
by Mark Light other posts by this author
Jul 2 2003 11:02AM messages near this date
Re: os.fork() different in cgi-script?
|
Re: splitting a string into 2 new strings
Hi,
I have a string e.g. 'C6 H12 O6' that I wish to split up to give 2
strings
'C H O' and '6 12 6'. I have played with string.split() and the re module -
but can't quite get there.
Any help would be greatly appreciated.
Thanks,
Mark.
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Mark Light
Anton Vredegoor
Mikael Olofsson
=?ISO-8859-1?Q?Gerhard_H=E4ring?=
Karl Scalet
Mark Light
Andrew Dalke
Andrew Dalke
John Hunter
trp
|