How to split multiline string into a string array

how can i split a string with multiple lines which were got from screen scrapping in to a string array?split

Please refer the below post.