MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re[2]: Parsing



>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