How to parse for a word in text in Javasscript?

In the text page, I would like to examine each word. What is the best way to read each word at the time? It is easy to find words that are surrounded by space, but once you get into parsing out words in text it can get complicated. 

Instead of defining my own way of parsing the words from text, is there something already built that parse out the words? 

Some example of words in text. 

      word word. word(word) word's word word' "word" .word. 'word' sub-word 


How to parse for a word in text in Javasscript?
===


In the text page, I would like to examine each word. What is the best way to read each word at the time? It is easy to find words that are surrounded by space, but once you get into parsing out words in text it can get complicated. 

Instead of defining my own way of parsing the words from text, is there something already built that parse out the words? 

Some example of words in text. 

      word word. word(word) word's word word' "word" .word. 'word' sub-word 

