how to split by words and punctuation in javascript

Solutions on MaxInterview for how to split by words and punctuation in javascript by the best coders in the world

showing results for - "how to split by words and punctuation in javascript"
Maeva
17 Sep 2019
1str.split(/[\\.!?]/)
María
20 Feb 2020
1string.split(/\s*\b\s*/)