So I been trying to code something to replace certain words in a sentance for what I TYPE.
Example I type
GT Hello, How is everyone?
for it to send
GT greetings, How is everyone?
So it'll replace hello with greeting. The part im having issues with is, IF Hello is the third word in the sentence such as, gt oh, my, hello, how are you? for it still replace hello with greetings.
Anyone have a clue how I could go about this?
the hello and greeting are examples and I would like to add more words to replace other words so to speak.
[help] replacing words
Re: [help] replacing words
how about gsub?
Re: [help] replacing words
oh, string.gsub, Thanks!