Re: Splitting a quoted string.

2007-05-16 Thread Gerard Flanagan
On May 16, 12:42 pm, mosscliffe <[EMAIL PROTECTED]> wrote: > I am looking for a simple split function to create a list of entries > from a string which contains quoted elements. Like in 'google' > search. > > eg string = 'bob john "johnny cash" 234 june' > > and I want to have a list of ['bob', '

Re: Splitting a quoted string.

2007-05-16 Thread mosscliffe
Thank you very much for all for your replies. I am now much wiser to using regex and CSV. As I am quite a newbie, I have had my 'class' education improved as well. Many thanks again Richard On May 16, 12:48 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > mosscliffe <[EMAIL PROTECTED]> wrote: > >

Re: Splitting a quoted string.

2007-05-16 Thread Duncan Booth
mosscliffe <[EMAIL PROTECTED]> wrote: > I am looking for a simple split function to create a list of entries > from a string which contains quoted elements. Like in 'google' > search. > > eg string = 'bob john "johnny cash" 234 june' > > and I want to have a list of ['bob', 'john, 'johnny cash

Re: Splitting a quoted string.

2007-05-16 Thread Paul Melis
Hi, mosscliffe wrote: > I am looking for a simple split function to create a list of entries > from a string which contains quoted elements. Like in 'google' > search. > > eg string = 'bob john "johnny cash" 234 june' > > and I want to have a list of ['bob', 'john, 'johnny cash', '234', > 'jun

Re: Splitting a quoted string.

2007-05-16 Thread Paul Melis
Paul Melis wrote: > Hi, > > mosscliffe wrote: > >> I am looking for a simple split function to create a list of entries >> from a string which contains quoted elements. Like in 'google' >> search. >> >> eg string = 'bob john "johnny cash" 234 june' >> >> and I want to have a list of ['bob', 'jo

Splitting a quoted string.

2007-05-16 Thread mosscliffe
I am looking for a simple split function to create a list of entries from a string which contains quoted elements. Like in 'google' search. eg string = 'bob john "johnny cash" 234 june' and I want to have a list of ['bob', 'john, 'johnny cash', '234', 'june'] I wondered about using the csv rou