how to do this type of search

2012-04-09 Thread Nicolas Cueto
Hello All, A straightforward question, I think. I have a list of 5 tab-delimited items per line. Each item can be either a single word or a group of words separated by a "/". Example: abide abode/abidedabode/abided/abiddenabides abiding alight alit/alighted alit/alighted alights

RE: how to do this type of search

2012-04-09 Thread John Dixon
The 'lineOffset' function will be your friend here... Dixie > A straightforward question, I think. > > I have a list of 5 tab-delimited items per line. Each item can be > either a single word or a group of words separated by a "/". > > Example: > > abide abode/abidedabode/abided/abidden

Re: how to do this type of search

2012-04-09 Thread Phil Davis
Here is one simple way, assuming you have control over the word list: -- one-time prep - optimize list for searching local sMyWordList put url ("file:" & tPathToMyWords) into sMyWordList put tab before sMyWordList replace CR with (tab & CR & tab) in sMyWordList replace slash wit

Re: how to do this type of search

2012-04-09 Thread Nicolas Cueto
> The 'lineOffset' function will be your friend here... If only it truly were that simple... In my example, lineOffset would return "3" for "is". But "5" is what I'm after. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com P

Re: how to do this type of search

2012-04-09 Thread Peter M. Brigham, MD
Set the wholematches to true before your search, then it will only locate the string when it is a whole word. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: >> The 'lineOffset' function will be your friend here... >

Re: how to do this type of search

2012-04-09 Thread Peter M. Brigham, MD
On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: > > > If only it truly were that simple... > > In my example, lineOffset would return "3" for "is". But "5" is what I'm > after. Sorry, setting the wholematches to true then doing lineoffset will get you whole matches for lines. Instead: set

Re: how to do this type of search

2012-04-09 Thread Mike Bonner
If using 5.5 there is also lineindex put lineindex(wordoffset("is,m)) into ww ^-- should give the line the word is found on. On Mon, Apr 9, 2012 at 7:28 PM, Peter M. Brigham, MD wrote: > On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: > > > > > > > If only it truly were that simple... > > > > In

Re: how to do this type of search

2012-04-09 Thread Mike Bonner
Yeah, i'm too fuzzy to answer questions lately. The proper method would be put wordoffset("is",m) into ww -- m being the container put lineindex(word ww of m) into tLine On Mon, Apr 9, 2012 at 7:33 PM, Mike Bonner wrote: > If using 5.5 there is also lineindex > put lineindex(wordoffset("is,m)) i

Re: how to do this type of search

2012-04-10 Thread Robert Brenstein
On 10.04.2012 at 10:06 Uhr +0900 Nicolas Cueto apparently wrote: > The 'lineOffset' function will be your friend here... If only it truly were that simple... In my example, lineOffset would return "3" for "is". But "5" is what I'm after. -- Nicolas Cueto untested but something along this