How to cut out the text?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
GioQveladze
Posts: 15
Joined: Wed Jan 25, 2012 6:40 am

How to cut out the text?

#1 Post by GioQveladze » Mon Jan 30, 2012 2:09 am

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

User avatar
MustHave
Posts: 28
Joined: Sat Jan 21, 2012 11:51 pm
Location: 742, Evergreen Terrace, Springfield

Re: How to cut out the text?

#2 Post by MustHave » Mon Jan 30, 2012 2:54 am

Sorry can't follow you. :roll:
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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to cut out the text?

#3 Post by lisa » Mon Jan 30, 2012 2:55 am

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
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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests