um, just tested it
i think i crashed... not sure though haha
and i know they're integers, but does it have to be a valid position in the string?
ie
duckquack
012345678
would subString("duckquack", 0, 10); return duckquack or an error?
edit: closed it due to being frozen...
and fuuu, now i gotta retype it all
edit: oh, duh
we're not updating the stuff in the while loop
edit again:
test this?
function findNextTag(%string)
{
%start = strPos(%string,"<");
%end = strPos(%string,">");
return %start SPC %end;
}
function removeTags(%string)
{
%newstr = %string;
while(findNextTag(%newstr) !$= "-1 -1")
{
%tagpos = findNextTag(%string);
%start = getWord(%tagpos,0);
%end = getWord(%tagpos,1);
%sut = getSubStr(%string,0,%start);
%eut = getSubStr(%string,%end,strLen(%string) - 1);
%newstr = %sut @ %eut;
}
return %newstr;
}