# Splitting texts into paragraphs

**URL:** https://forum.kirupa.com/t/splitting-texts-into-paragraphs/268528
**Category:** flash
**Created:** [August 14, 2008, 11:03pm UTC](https://forum.kirupa.com/t/splitting-texts-into-paragraphs/268528 "2008-08-14T23:03:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nortago](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nortago/32/1240_2.png) [@nortago](https://forum.kirupa.com/u/nortago)
#### Post date: [August 14, 2008, 11:03pm UTC](https://forum.kirupa.com/t/splitting-texts-into-paragraphs/268528/1 "2008-08-14T23:03:26Z")

</div>

Hey guys,

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

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
