MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re[2]: Parsing
-
Date: Tue, 5 Dec 1995 10:05:36 PST
-
From: F HAGER X0366 <LIFH@atuvm.atu.edu>
-
In-Reply-To: In reply to your message of Sun, 26 Nov 1995 20:26:13 CST
>Ya, (Im typing this out real quick so this might not work, but it should.
>I'm sure there there are programmers out there who would hand you a much
>better peice of code than this but it will do.
>txtb="";
>txt=args[1];
>txt=txt[2..length(txt)];
>n=index(txt,"/");
>txtb=txtb+txt[1..n-1];
>txt=txt[n+1..length(txt)];
>n=index(txt,"/");
>txtb=txtb+txt[1..n-1];
>txt=txt[n+1..length(txt)];
>txtb=txtb+txt;
>return txtb;
>
This is very very very inefficent..
$string_utils:words(strsub(txt,"/","")) works better.
-- Rand || Mat @ Most MOOs/MatC @ Lambda
Home |
Subject Index |
Thread Index