Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16115
| Subject | RE: String splitting by spaces question |
|---|---|
| Date | 2011-11-23 11:31 -0600 |
| References | <3f19e4c0-e010-4cb2-9f71-dd09e0d3cb1f@r9g2000vbw.googlegroups.com> |
| From | "Alemu Tadesse" <atadesse@sunedison.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2975.1322069528.27778.python-list@python.org> (permalink) |
Hi Everyone, Can we use rsplit function on an array or vector of strings ? it works for one not for vector Alemu -----Original Message----- From: python-list-bounces+atadesse=sunedison.com@python.org [mailto:python-list-bounces+atadesse=sunedison.com@python.org] On Behalf Of Massi Sent: Wednesday, November 23, 2011 10:10 AM To: python-list@python.org Subject: String splitting by spaces question Hi everyone, I have to parse a string and splitting it by spaces. The problem is that the string can include substrings comprises by quotations which must mantain the spaces. What I need is to pass from a string like: This is an 'example string' to the following vector: ["This", "is", "an", "example string"] Which is the best way to achieve this? Thanks in advance! -- http://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
String splitting by spaces question Massi <massi_srb@msn.com> - 2011-11-23 09:10 -0800
RE: String splitting by spaces question "Alemu Tadesse" <atadesse@sunedison.com> - 2011-11-23 11:31 -0600
Re: String splitting by spaces question Arnaud Delobelle <arnodel@gmail.com> - 2011-11-23 17:40 +0000
Re: String splitting by spaces question Nick Dokos <nicholas.dokos@hp.com> - 2011-11-23 12:51 -0500
Re: String splitting by spaces question Miki Tebeka <miki.tebeka@gmail.com> - 2011-11-23 12:40 -0800
Re: String splitting by spaces question Phil Rist <Phil_member@newsguy.com> - 2011-11-23 16:20 -0800
Re: String splitting by spaces question DevPlayer <devplayer@gmail.com> - 2011-11-23 19:53 -0800
csiph-web