Re: Trim?
Re: Trim?
- Subject: Re: Trim?
- From: John Delacour <email@hidden>
- Date: Sat, 3 Aug 2002 02:35:46 +0100
At 2:37 pm -0700 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 s to " This is a string "
set AppleScript's text item delimiters to {space}
set s to "" & words of s
set AppleScript's text item delimiters to {""}
return s
or use Regular Expressions in do shell script "perl -e '.....'"
JD
_______________________________________________
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) |