Matching pattern with words and apostrophes
I'm splitting strings into individual words to create an auto-completion dictionary, but my current code does not account for words with apostrophes in them.
I'd like the dictionary to store combinations such as "doesn't", "let's", etc.
I'm currently using the pattern "[%a][%w]+", which is perfectly fine for coherent words, but will cut words with apostrophes into parts.
__________________
Last edited by MunkDev : 11-04-15 at 12:41 AM.
|