Re: text item delimiter
Re: text item delimiter
- Subject: Re: text item delimiter
- From: Martin Orpen <email@hidden>
- Date: Fri, 29 Apr 2005 16:31:40 +0100
on 29/4/05 15:54, Rob Stott at email@hidden wrote:
> ...theres almost certainly a better way that doesn't involve that many 'sed's
> for multiple digits but I'm not sure how. Can anyone put me straight on that
> one?
You can use tr for single digits:
set alphString to "hafbjgcedi"
do shell script "echo " & alphString & " | tr [a-j] [0-9]"
-->""7051962438""
Multiple digits are also *problematic* with tr - but pretty useless when
returned as a string too :-)
--
Martin Orpen
_______________________________________________
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