Splitting texts into paragraphs

Hey guys,

Been wracking my brains to try and work out how to do this, and I’ve resorted to using the forums :slight_smile:

Basically, I need to take a load of text and split it into an array of each paragraph.

After much looking I came across the getParagraphLength() method, so using that I can select the first paragraph using getParagraphLength(0); - that can then be added into the array - But if anyone could suggest how I’d turn this into a function (poss with a loop), I’d be grateful!

If I manage to figure it out I’ll post it here…

Thanks

Liam