Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-03-15, 10:30 PM   #1
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
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.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Matching pattern with words and apostrophes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off