This is an 'example string'
Don't for get to watch for things like:
Don't, Can't, Won't, I'll, He'll, Hor'davors, Mc'Kinly
--
http://mail.python.org/mailman/listinfo/python-list
In article <3f19e4c0-e010-4cb2-9f71-dd09e0d3c...@r9g2000vbw.googlegroups.com>,
Massi says...
>
>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
http://docs.python.org/library/shlex.html
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Nov 23, 2011 at 12:10 PM, Massi wrote:
> 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 'exampl
Alemu Tadesse wrote:
> Can we use rsplit function on an array or vector of strings ? it works
> for one not for vector
> ...
>
> 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.
On 23 November 2011 17:10, Massi wrote:
> 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
: 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
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", "ex