Re: Trim?
Re: Trim?
- Subject: Re: Trim?
- From: Emmanuel <email@hidden>
- Date: Sat, 3 Aug 2002 11:27:44 +0200
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) |