How to "retrieve" only useful information in a long list

alex wu alex298298 at yahoo.com
Sun Feb 5 20:15:03 CST 2006


Ken,
   
  This is really great!!!!  What a poweful regular expression of RR!  I always think that PERL has the most poweful regular expression.  I need to learn more about the regular expression of RR now.
   
  Thanks again for your help.
   
  Alex

Ken Ray <kray at sonsothunder.com> wrote:
  On 2/3/06 8:58 AM, "alex wu" wrote:

Alex,

You can also use regular expressions to do this:

get matchText(tData,"(?s)FIXED WORDINGS HERE(.*?)ANOTHER FIXED WORDINGS
HERE",tVal)

and now 'tVal' contains the data between the two sections. If you want to
actually start on the next *line* after FIXED WORDINGS HERE and end at the
line before ANOTHER FIXED WORDINGS HERE, you can do this:

get matchText(tData,"(?s)FIXED WORDINGS HERE\n(.*?)\nANOTHER FIXED
WORDINGS HERE",tVal)

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.


More information about the use-livecode mailing list