• 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: Replacing characters in a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing characters in a string


  • Subject: Re: Replacing characters in a string
  • From: "Christopher C. Stone" <email@hidden>
  • Date: Sun, 12 Nov 2000 04:07:33 -0600

At 17:07 -0500 11/11/00, Matthew Fischer wrought:

> How would I change this:
>
> repeat with i from ((length of file_name) - 10) to length of file_name
> if character i of file_name is not ":" then
> set new_file_name to new_file_name & character i of file_name
> end if
> end repeat
___________________________________________________________________________

Hello Matthew,

If you don't mind using Osaxen: I'd use RegEx Commands.

http://www.lazerware.com/FTP/RECommands.hqx

set t to "abcdefghijkl:o&q st"

set t to REReplace t with "" pattern "[: &]"


Best Regards,

Chris

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Christopher C. Stone
StoneWorks Computer Consulting
email@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


References: 
 >Replacing characters in a string (From: Matthew Fischer <email@hidden>)

  • Prev by Date: FM question: Omit in find
  • Next by Date: Entire content (Re: Maintaining large website / finding many files)
  • Previous by thread: stack overflow avoidance?
  • Next by thread: Re: Replacing characters in a string
  • Index(es):
    • Date
    • Thread