textarea returns this
[u'a\r\nb\r\nc\r\nd\r\ne']
what is the best way to turn that into a list
['a', 'b', 'c', 'd', 'e']
Thanks!
textarea returns this
[u'a\r\nb\r\nc\r\nd\r\ne']
what is the best way to turn that into a list
['a', 'b', 'c', 'd', 'e']
Thanks!
>>> L = [u'a\r\nb\r\nc\r\nd\r\ne']
>>> L[0].split('\r\n')
[u'a', u'b', u'c', u'd', u'e']