Re: Converting original items...
Re: Converting original items...
- Subject: Re: Converting original items...
- From: Emmanuel <email@hidden>
- Date: Wed, 13 Mar 2002 20:18:56 +0100
At 5:58 PM +0100 13/3/02, mjn wrote:
>
>
I am not quite sure how robust the regular expressions are in AS but here is
>
the problem I am trying to solve:
>
Pointers? Tips? Starting points? Ideas? Seems like this should be an
>
easy task to accomplish but I'm stuck...
In short.
Pure AppleScript provides "offset", which retrieves a substring in a
string. Implies issues about matching or non matching cases.
Pure AppleScript provides "text items of a_String", which uses a
(user-defined) separator (possible, a substring) to break a string into a
list of strings. Implies limitations about the size of the returned list.
"offset" + "text items" provide a way of searching and replacing text in
text. A way rather verbose, possibly slow, and size-limited unless you
really design a monument of a script.
Some Scripting Additions from third-parties propose the Regular Expressions
feature, which provides a shorter, faster, and safer solution.
<plug>
One of the free Scripting Additions who do is the Satimage Scripting
Addition. It is considered rather reliable, and is probably one of the
fastest (Regular Expressions run still faster from within the free script
editor Smile). (My company makes Smile and Satimage)
<
http://www.satimage-software.com>.
</plug>
Emmanuel
_______________________________________________
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.