views:

45

answers:

1
+1  Q: 

textarea to list

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!

+9  A: 
>>> 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']
Adam Bernier