• 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: How best to extract digits from a string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How best to extract digits from a string?


  • Subject: Re: How best to extract digits from a string?
  • From: Nigel Smith <email@hidden>
  • Date: Fri, 27 Apr 2001 15:06:39 +0100

Jed wrote:
>Moral of the story:
>If you need to concatenate a single value to a string repeatedly, use the
>"set end of <list>" method and convert to a string after the loop. If the
>concatenated values are going to be different within each cycle of the loop,
>use the standard "set str to str & <literal>" method. Right?

There also seem to differences with different versions of Applescript.
1.3.7 seems to use the list method faster than the string concat method,
while 1.5 (I think it's that, anyway) seems to take about the same time for
each -- both concating the string "Hello World, this is a bust, isn't it"
300 times.

So there's definitely more to this than "one is better than the other"...

Nigel


References: 
 >Re: How best to extract digits from a string? (From: "Arthur J Knapp" <email@hidden>)
 >Re: How best to extract digits from a string? (From: Jed Verity <email@hidden>)

  • Prev by Date: Re: move font file from font folder
  • Next by Date: How to copy to clipboard
  • Previous by thread: Re: How best to extract digits from a string?
  • Next by thread: Re: How best to extract digits from a string?
  • Index(es):
    • Date
    • Thread