# Split up words using RegExp?

**URL:** <https://forum.kirupa.com/t/split-up-words-using-regexp/245531>\
**Category:** flash\
**Created:** [November 30, 2007, 5:06pm UTC](https://forum.kirupa.com/t/split-up-words-using-regexp/245531 "2007-11-30T17:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deltajam](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@deltajam](https://forum.kirupa.com/u/deltajam)\
**Post date:** [November 30, 2007, 5:06pm UTC](https://forum.kirupa.com/t/split-up-words-using-regexp/245531/1 "2007-11-30T17:06:43Z")

</div>

Hi, just wondering if there is a better way to split up words in a sentenc using RegExp. This class is confusing to me, and I would liek to get a better grasp of it. Are there any resources out there that go into depth about RegExp?

What I have done:

```auto

var str:String = "I would like to split up words in a sentence";
var re:RegExp = /\s/;
var results:Array = str.split(re);
  
trace(results);

```

Is there another more ‘concrete’ way of doing this?
