Re: Counting Words and Characters
Re: Counting Words and Characters
- Subject: Re: Counting Words and Characters
- From: Michelle Steiner <email@hidden>
- Date: Fri, 13 Jul 2001 10:01:57 -0700
On 7/13/01 10:15 AM, Arthur Cormack <email@hidden> wrote:
>
Any suggestions?
set stringtochange to "The quick brown fox jumped over the dirty black
dog's head."
set wordtochange to "jumped"
set newword to "leaped"
set beforesnip to (offset of wordtochange in stringtochange) - 1
set wordlength to length of wordtochange
set aftersnip to beforesnip + wordlength + 1
set newstring to text 1 through beforesnip of stringtochange & newword &
text aftersnip through -1 of stringtochange
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------