Re: Replacing characters in a string
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~