• 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
Direct character replacement in a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Direct character replacement in a string


  • Subject: Direct character replacement in a string
  • From: FlyMac <email@hidden>
  • Date: Wed, 07 Feb 2001 00:48:47 +0100

Hello !

First, I'd like to thank all the people here, you helped me a lot already :)
By the way, I have a question that could interst other "almost-newbies" in
AppleScript like me, hehe:
I get a string from a text file (using Akua) that could be something like
this:
"Th*s *s an ?xampl?"
Where every "*" should be replaced by an "i" and every "?" by an "e" before
doing something else in the script.
There is no problem to do this when the * are separated with a delimiter ("
" in this example) but when they are directly in a word ?

Have a nice day and thanks in advance !

Kevin


  • Follow-Ups:
    • Re: Direct character replacement in a string
      • From: Motoyuki Tanaka <email@hidden>
    • Re: Direct character replacement in a string
      • From: "Christopher C. Stone" <email@hidden>
    • Re: Direct character replacement in a string
      • From: Jolly Roger <email@hidden>
    • Re: Direct character replacement in a string
      • From: g3pb <email@hidden>
  • Prev by Date: Re: Querying Number of Lines in BBEdit
  • Next by Date: Re: Metamorphosax! (revisited)
  • Previous by thread: Evaporating properties
  • Next by thread: Re: Direct character replacement in a string
  • Index(es):
    • Date
    • Thread