• 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: selective string-replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selective string-replace


  • Subject: Re: selective string-replace
  • From: Steven Angier <email@hidden>
  • Date: Thu, 08 Aug 2002 09:34:06 +1000

This works for me (uses the Macscript.com Library):

set theString to
"http://progressive.stream.aol.com/wbonline/reloaded_teaser_1_480.mov";

ReplaceString(theString, {"//", "/", ""}, {"", "|", "//"})
--> "http://progressive.stream.aol.com|wbonline|reloaded_teaser_1_480.mov"

A demo of the Library is available from our site:
<http://www.macscript.com>.

Steven Angier
Macscript.com




On 8/8/02 6:04 AM, "email@hidden" <email@hidden> wrote:

> I have a need to write a script that will convert strings like this:
>
> http://progressive.stream.aol.com/newline/gl/newline/lordoftherings/TheTwoTowe
>
> rs_480.mov
> http://progressive.stream.aol.com/wbonline/reloaded_teaser_1_480.mov
>
> into strings like this:
>
> http://progressive.stream.aol.com|newline|gl|newline|lordoftherings|TheTwoTowe
>
> rs_480.mov
> http://progressive.stream.aol.com|wbonline|reloaded_teaser_1_480.mov
_______________________________________________
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: 
 >selective string-replace (From: email@hidden)

  • Prev by Date: Re: TIDs, my bestest friend
  • Next by Date: Re: selective string-replace
  • Previous by thread: Re: selective string-replace
  • Next by thread: Re: selective string-replace
  • Index(es):
    • Date
    • Thread