How to split each line of text from txtfield

multiline Dynamic text filed have 2 or 3 line text. I want to push each line of text into separate array. any idea

i used str.split(’\r’). not work.

pl help.