AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
Finding a word
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
07-01-10, 02:35 PM
#
1
Soulofsin_007
A Flamescale Wyrmkin
Join Date: Apr 2008
Posts: 125
Finding a word
I basically want to find a word in a sentence, and replace what was said with something else. Sorta like the tutorial on the wiki about hooking the chatentry but I'm not 100% sure on how to find that word in the sentence.
Soulofsin_007
View Public Profile
Send a private message to Soulofsin_007
Find More Posts by Soulofsin_007
07-01-10, 03:34 PM
#
2
Sythalin
Curse staff
Join Date: Aug 2006
Posts: 680
Code:
string.gsub(source, find, replace)
Sythalin
View Public Profile
Send a private message to Sythalin
Find More Posts by Sythalin
07-01-10, 03:38 PM
#
3
Soulofsin_007
A Flamescale Wyrmkin
Join Date: Apr 2008
Posts: 125
Thanks I'll try that.
Soulofsin_007
View Public Profile
Send a private message to Soulofsin_007
Find More Posts by Soulofsin_007
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» Finding a word
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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