string.find()

Can anyone help me with a basic implementation of [lua]string.find()[/lua] located here:
http://developer.coronalabs.com/node/3180

I have a simple list of words in a text document and I would like to search it within the app. Thanks for any help. Am I using the right function for this?

[import]uid: 53149 topic_id: 33327 reply_id: 333327[/import]

Hey spenggong,

Peach Pellen has an excellent Boggle tutorial (with video) at her techority site:

http://corona.techority.com/2012/03/10/boggle-in-under-350-lines-in-coronasdk-full-video-tutorial/

It loads up an entire dictionary from a text file, to be able to compare entered words with valid words.
I tried the string.find function , using the lua_bot in the Corona IRC chatroom: (irc.freenode.net #corona)

Here I am looking for: [SK]Ray

print (string.find("kjsdhfkjsdhkjsdhfkjsdhfkjsdhf[SK]Ray: lua\> print er", "[SK]Ray",1, true))

I get back: 30, 36

Which is the beginning and end index of the search term. If it cannot find the search term, you get back nil. [import]uid: 135765 topic_id: 33327 reply_id: 132339[/import]

Hey spenggong,

Peach Pellen has an excellent Boggle tutorial (with video) at her techority site:

http://corona.techority.com/2012/03/10/boggle-in-under-350-lines-in-coronasdk-full-video-tutorial/

It loads up an entire dictionary from a text file, to be able to compare entered words with valid words.
I tried the string.find function , using the lua_bot in the Corona IRC chatroom: (irc.freenode.net #corona)

Here I am looking for: [SK]Ray

print (string.find("kjsdhfkjsdhkjsdhfkjsdhfkjsdhf[SK]Ray: lua\> print er", "[SK]Ray",1, true))

I get back: 30, 36

Which is the beginning and end index of the search term. If it cannot find the search term, you get back nil. [import]uid: 135765 topic_id: 33327 reply_id: 132339[/import]