parsing a string of ascii text into separate variables
Posted
by jml
on Stack Overflow
See other posts from Stack Overflow
or by jml
Published on 2010-05-11T21:58:37Z
Indexed on
2010/05/12
3:34 UTC
Read the original article
Hit count: 323
Hi there,
I have a piece of text that gets handed to me like:
here is line one\n\nhere is line two\n\nhere is line three
What I would like to do is break this string up into three separate variables. I'm not quite sure how one would go about accomplishing this in python.
Thanks for any help, jml
© Stack Overflow or respective owner