[Tutor] parsing a string

L&L Lbrannma at yahoo.com
Sun Oct 10 20:00:42 CEST 2004


Hi All,

Suppose I have a string that looks like this:

1 1997 2 "Henrik Larsson"

I want to convert the string to a list, with four members. Is there an easy 
way to do this (the hard way would be to find all quotes, save to a 
separate string the area between the quotes, remove this part from the 
original string, use string.split, and put the string back together.

Thanks.




More information about the Tutor mailing list