I believe there's a bug in $deltok() here, deleting the first token if the number of tokens in text is outside the specified range (I was trying to figure out why you added that "a. " there).

On a sidenote, wouldn't it be nice if positive-negative ranges worked or $gettok(a b,-3-,32) didn't return $null?

There you go, a bug report and a feature suggestion in a scripts&popups post :tongue:

Last edited by qwerty; 02/03/06 04:01 PM.