What is the correct pattern for splitting a string in javascript, leaving just a-z words
<p>I have the next code that was given to me to split up a string into an array.</p>

<pre><code>var chk = str.split(/[^a-z']+/i);
</code></pre>

<p>The problem I'm having with this solution is that if the string has a period in the end, it's being replaced with ","</p>

<p>For example:
If I have the next string: "hi,all-I'm-glad."
The solution above results: "hi,all,I'm,glad," (notice the "," in the end).
I need that the new string will be: "hi,all,I'm,glad"  </p>

<p>How can I acheive it ?</p>
