If you don't know the delimiter for $gettok, how will a script figure it out for you? Now, you *can* find the position in a string of text that matches some search and then get the $chr value for the character after/before that position. But that requires you to know what you're looking for. If you know that, why wouldn't you know the delimiter? More specifics would help.