Re: List from text
Re: List from text
- Subject: Re: List from text
- From: Christopher Stone <email@hidden>
- Date: Fri, 4 Jul 2003 16:49:33 -0500
At 07/04/2003 14:14 +0100, John Clark wrought:
Can I create a list from a text string generated in Filemaker 4 ?
What I need to return is {zzz.jpg, aaa.jpg, www.jpg, qqq.jpg}
______________________________________________________________________
Hello John,
I usually use regular expressions for this sort of thing. The Satimage
Osax's regex has come along nicely for Mac OS X:
http://www.satimage-software.com/en/soft9.html
(Which Mac OS are you using?)
set x to "zzz.jpgaaa.jpgwww.jpgqqq.jpg"
try
set findIt to find text "\\w+\\.jpg" in x with regexp, string result
and all occurrences without case sensitive
on error
set findIt to false
end try
--> {"zzz.jpg", "aaa.jpg", "www.jpg", "qqq.jpg"}
Best Regards,
Christopher Stone
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.