HP3000-L Archives

July 1995, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Tony B. Shepherd" <[log in to unmask]>
Reply To:
Tony B. Shepherd
Date:
Tue, 25 Jul 1995 10:16:09 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
In article <[log in to unmask]>,
 Jeff Vance <[log in to unmask]> wrote:
] Subject:      Re: Word extraction CI evaluator function
] I should have been clearer, so I'll try again...
] :setvar buf "ftp.iii.net/ftp/pub/pub-site/tbs"
] :calc word(buf)
] ftp.iii.net/ftp/pub/pub-site/tbs    <=== uses default word delims
] :calc word(buf,'.')                 <==== specify the word delim is "."
] ftp
] :calc word(buf,'.',2)     <==== get the 2nd word from buf with "." as delim
] iii
] :calc word(buf,'/')       <==== now "/" is the word delim
] ftp.iii.net
] :calc word(buf,'/',-1)    <==== get last word in buf with "/" as delim
] tbs
] Hope this helps,
 
{Blink} Ah-so! Thanks for turning the lights on :-) That feels much better
now - sorry for the thick calcium deposits :-)
 
--
Regards  --  Tony B. Shepherd  --  [log in to unmask]

ATOM RSS1 RSS2