• 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: Reduce multiple characters to single occurrence (via do shell script?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reduce multiple characters to single occurrence (via do shell script?)


  • Subject: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 25 Mar 2005 08:05:35 -0600

At 01:15 -0600 03/25/2005, Joseph Weaks wrought:

I want to clean up a string by reducing all double, triple, etc. spaces to a single space.
______________________________________________________________________

For speed and ease of use I like the Satimage osax for this sort of thing:

 set theString to "This has  extra spaces.
   I want them  removed."

set newString to change " +" into " " in theString with regexp without case sensitive

~~~~~

This has extra spaces.
 I want them removed.

http://www.satimage.fr/software/en/downloads_osaxen.html


Chris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Reduce multiple characters to single occurrence (via do shell script?) (From: Joseph Weaks <email@hidden>)

  • Prev by Date: Re: getting chunks of text
  • Next by Date: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Previous by thread: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Next by thread: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Index(es):
    • Date
    • Thread