ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved