Re: selective string-replace
Re: selective string-replace
- Subject: Re: selective string-replace
- From: Frank Miedreich <email@hidden>
- Date: Thu, 8 Aug 2002 11:52:39 +0200
Hi,
if you do not mind using additions, the XCMD addition has Textual
Replace which will allow you to do:
set uri to Textual Replace "/" in uri by "|" starting at 8
cheers, Frank
At 16:04 Uhr -0400 07.08.2002, 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
I somehow need to do a "search and replace" of the slashes with pipes, yet
leave the http:// slashes intact. Is there a way I can do a stringreplace,
yet somehow detect that if there's 2 slashes together, that they should be
left untouched?
- Rob
_______________________________________________
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.
--
Dr. Frank Miedreich
Leiter Entwicklung/IT
Kochan & Partner GmbH
Hirschgartenallee 25, 80639 M|nchen
Tel.: +49 89 17860-930, Fax: +49 89 1781235
_______________________________________________
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.