Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Trim?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trim?



At 11:37 PM +0200 2/8/02, email@hidden wrote:
>
>Does anyone know if there's a simple way to trim white space off of a
>string, or should I just loop through it and take them out myself?

------------------------
set theString to "The Text suite of the Satimage osax might be what you need:"
change " " into "" in theString
--> "TheTextsuiteoftheSatimageosaxmightbewhatyouneed:"
------------------------

"change" and its companion command "find text" accept regular expressions,
but you don't need them here. You would, for instance, if you had to
remove, say, all figures:

------------------------
set theString to "Latest version of Satimage osax is 2.4.3."
change "[0-9]" into "" in theString with regexp
--> "Latest version of Satimage osax is ..."
------------------------

The Satimage osaxim's dictionaries are on line:

<http://www.satimage-software.com/en/dictosax9.html>
<http://www.satimage-software.com/en/dictosaxx.html>

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Trim? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.