# How to split string into array of words

**URL:** <https://forum.kirupa.com/t/how-to-split-string-into-array-of-words/284044>\
**Category:** flash\
**Created:** [March 14, 2009, 3:38am UTC](https://forum.kirupa.com/t/how-to-split-string-into-array-of-words/284044 "2009-03-14T03:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fak](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@fak](https://forum.kirupa.com/u/fak)\
**Post date:** [March 14, 2009, 3:38am UTC](https://forum.kirupa.com/t/how-to-split-string-into-array-of-words/284044/1 "2009-03-14T03:38:00Z")

</div>

Is it possible to split a string like “Lorem ispum dolor, sit amet. Howdy doody.” into an array of words without commas and periods, in one operation?

I’ve tried words:Array = startString.split(String.fromCharCode(32,44,46));

i guess the reason my example doesn’t work is because it searced for " ,." to split the string… But how can i solve this.
