javascript split string with punctations code example
Example 1: split into sentences at any punctuation javascript
str.split(/[\\.!?]/)
Example 2: how to split by words and punctuation in javascript
string.split(/\s*\b\s*/)
str.split(/[\\.!?]/)
string.split(/\s*\b\s*/)