• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing every instance of a substring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Removing every instance of a substring (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: open for access file pathstring with write permission
  • Next by Date: NSBorderlessWindow and clearColor
  • Previous by thread: Removing every instance of a substring
  • Next by thread: Re: Removing every instance of a substring
  • Index(es):
    • Date
    • Thread