Page 1 of 1

How to cut out the text?

Posted: Mon Jan 30, 2012 2:09 am
by GioQveladze
Hello All
Prompt please as to me from the text to cut out a certain part of the text on an example: "Hello All how are you doing?" I want to cut out "how are you" as to me of it to make?
And how to learn a text position by an example "how are you" from "Hello All how are you doing?" = 10
In advance thanks

Re: How to cut out the text?

Posted: Mon Jan 30, 2012 2:54 am
by MustHave
Sorry can't follow you. :roll:
Maybe you could explain your goals?
What are you trying to do, monitoring for a special text?

Re: How to cut out the text?

Posted: Mon Jan 30, 2012 2:55 am
by lisa
have a read of the lua manual

http://www.lua.org/manual/5.1/manual.html#5.4

Code: Select all

text = "Hello how are you??"
if string.find(text,"how are you") then print("yay text is found") end