• 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: Michael Grant <email@hidden>
  • Date: Sat, 17 Aug 2002 11:52:43 -0500

>> 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?

You could first replace double-slashes with some string that's unlikely to
occur naturally (say, "2slashes") before doing any of your other replacing,
then change your string back at the end. Not sure if that would be more or
less efficient than other suggestions that have already been offered.

Michael

====
German is my wife; Czech is my mistress
_______________________________________________
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: 
 >Re: selective string-replace (From: Peter Wiherkoski <email@hidden>)

  • Prev by Date: Re: making a script wait until a task finishes before proceeding
  • Next by Date: Re: string question
  • Previous by thread: Re: selective string-replace
  • Next by thread: Re: selective string-replace
  • Index(es):
    • Date
    • Thread