Hey guys what regular expression can I use to parse only words and remove all other non words from a text. I want to extract all words from a string. Example; "This is a string of (words) with can't ..." Will return and array or a string "this is a string of words with can't"
I tried using "[[:alpha:]']+" but it screws up if there is a ' before the word like 'door.
So in a nutshell I just want all words including contractions. If it sees ('door) it will return just door