Re: Removing every instance of a substring
Re: Removing every instance of a substring
- Subject: Re: Removing every instance of a substring
- From: Michelle Steiner <email@hidden>
- Date: Tue, 14 Jan 2003 13:58:17 -0700
On Tuesday, January 14, 2003, at 01:04 PM, Gnarlodious wrote:
"Gnarlodious.util:Workshop.util:Forth.util:Mops.util:MopsManual.util:"
Will morph into:
"Gnarlodious:Workshop:Forth:Mops:MopsManual:"
with removing substring ".util"
set foo to
"Gnarlodious.util:Workshop.util:Forth.util:Mops.util:MopsManual.util:"
set bar to ".util"
set text item delimiters to bar
set foo to text items of foo
set text item delimiters to ""
set foo to foo as text
--> "Gnarlodious:Workshop:Forth:Mops:MopsManual:"
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
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.