Re: Removing every instance of a substring
Re: Removing every instance of a substring
- Subject: Re: Removing every instance of a substring
- From: Paul Skinner <email@hidden>
- Date: Tue, 14 Jan 2003 16:06:03 -0500
On Tuesday, January 14, 2003, at 03:04 PM, Gnarlodious wrote:
Does anyone have a handler kicking around that will remove every
instance of
a substring from a string?
For example:
"Gnarlodious.util:Workshop.util:Forth.util:Mops.util:MopsManual.util:"
Will morph into:
"Gnarlodious:Workshop:Forth:Mops:MopsManual:"
with removing substring ".util"
-- Rachel
http://www.Gnarlodious.com/Workshop/Forth/Mops/MopsManual/Lessons/
Lesson12.h
tml#IndefiniteLoops
Several, but you might just want...
set t to
"Gnarlodious.util:Workshop.util:Forth.util:Mops.util:MopsManual.util:"
set AppleScript's text item delimiters to ".util"
set {t, AppleScript's text item delimiters} to {text items of t, ""}
set t to t as string
-->"Gnarlodious:Workshop:Forth:Mops:MopsManual:"
--
Paul Skinner
_______________________________________________
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.