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
How to cut out the text?
Re: How to cut out the text?
Sorry can't follow you.
Maybe you could explain your goals?
What are you trying to do, monitoring for a special text?
Maybe you could explain your goals?
What are you trying to do, monitoring for a special text?
Beer: The cause of, and solution to, all of life's problems.
Thnx to all of those who are working their ass off for us dumb asses
Thnx to all of those who are working their ass off for us dumb asses
Re: How to cut out the text?
have a read of the lua manual
http://www.lua.org/manual/5.1/manual.html#5.4
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
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: No registered users and 3 guests