replacing parts of a word

Posted by Seje on Sun 16 Dec 2012 12:33 PM — 2 posts, 10,630 views.

#0
how to replace parts of a word, e.g replacing 'ing' in 'replacing' with something else. or from a list
wordparts = {
tion = "",
ing = "",
th = "",
}
I tried string.gsub but could only match a whole word rather than parts
USA Global Moderator #1
Quote:
I tried string.gsub but could only match a whole word rather than parts

Show us what you tried.