Re: searching for chars within a string

2014-09-26 Thread larry
functions was very helpful. So thanks again. Larry P.S. I'm using LC 6.6.3 on Windows XP with 4gb of ram. - Original Message - From: "Peter M. Brigham" To: "How to use LiveCode" Sent: Friday, September 26, 2014 11:53 AM Subject: Re: searching for chars w

Re: searching for chars within a string

2014-09-26 Thread Peter M. Brigham
t; > Sent: Friday, September 26, 2014 12:54 AM > Subject: Re: searching for chars within a string > > >> A simple way would be just to use basic matchText() for each single >> letter and regex matchText() for repeating letters. P.*P will find >> double Ps, P.*P.*P

Re: searching for chars within a string

2014-09-26 Thread larry
Hello Kay, Good stuff. I did some time tests and offset() is about twice as fast as matchText(). Don't know why. Larry - Original Message - From: "Kay C Lan" To: "How to use LiveCode" Sent: Friday, September 26, 2014 12:54 AM Subject: Re: searching for c

Re: searching for chars within a string

2014-09-25 Thread Kay C Lan
A simple way would be just to use basic matchText() for each single letter and regex matchText() for repeating letters. P.*P will find double Ps, P.*P.*P will find triple Ps etc. Seems to be relatively fast but if you have very large data sets other alternatives would need to be investigated. in

Re: P.S. on searching for chars within a string

2014-09-24 Thread Michael Doub
Very creative approach. I like it. -= Mike On Sep 24, 2014, at 12:30 PM, J. Landman Gay wrote: > Jacqueline ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: P.S. on searching for chars within a string

2014-09-24 Thread J. Landman Gay
On 9/24/2014, 2:20 AM, la...@significantplanet.org wrote: I am using a for each loop and have run some benchmark time tests. I am able to find (match) the words I want in about 1/7 of the time that it used to take me using a different procedure - and the old way was pretty fast! To find all the

Re: P.S. on searching for chars within a string

2014-09-24 Thread larry
aig -Original Message- From: larry To: use-livecode Sent: Tue, Sep 23, 2014 8:25 pm Subject: P.S. on searching for chars within a string Hello again, I know how to do it with brute force, but I want to know the FASTEST way to find the chars. Thanks ___

Re: P.S. on searching for chars within a string

2014-09-23 Thread dunbarx
- From: larry To: use-livecode Sent: Tue, Sep 23, 2014 8:25 pm Subject: P.S. on searching for chars within a string Hello again, I know how to do it with brute force, but I want to know the FASTEST way to find the chars. Thanks ___ use-liveco

Re: searching for chars within a string

2014-09-23 Thread dunbarx
larry To: use-livecode Sent: Tue, Sep 23, 2014 8:23 pm Subject: searching for chars within a string Hello, I have done a lot research and cannot find any way to do this: I have a string, "AELPP" and I want to see if all 5 of those letters are in "search string" If searc

P.S. on searching for chars within a string

2014-09-23 Thread larry
Hello again, I know how to do it with brute force, but I want to know the FASTEST way to find the chars. Thanks ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription p

searching for chars within a string

2014-09-23 Thread larry
Hello, I have done a lot research and cannot find any way to do this: I have a string, "AELPP" and I want to see if all 5 of those letters are in "search string" If search string is: ABCDEKLP, then NO it isn't because there are two P's in the string I'm searching for. But if search string