# Splitting Up Text By Word/Character Count?

**URL:** <https://forum.bubble.io/t/splitting-up-text-by-word-character-count/183287>\
**Category:** App Organization\
**Created:** [December 22, 2021, 5:45am UTC](https://forum.bubble.io/t/splitting-up-text-by-word-character-count/183287 "2021-12-22T05:45:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.murdaugh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott.murdaugh/32/96624_2.png) [@scott.murdaugh](https://forum.bubble.io/u/scott.murdaugh)\
**Post date:** [December 22, 2021, 5:45am UTC](https://forum.bubble.io/t/splitting-up-text-by-word-character-count/183287/1 "2021-12-22T05:45:44Z")

</div>

I figure this shouldn’t be too complicated, but I’ve been searching all day and can’t figure out a solution, so here it goes…

I have a basic multi-line input, and the user can input a chunk of text. I want to send the text to external API’s but need to split it up in order to do so.

So basically I want to take say 2,000 words, and split it up into 4 groups of 500 words each that I can access from a repeating group or a custom state.

Is there a way to do this with Regex?

I really appreciate any tips or advice.

Thanks!
