Explain this:
"\t\n\r\">#"
it's used in Java tokenizer.
StringTokenizer st = new StringTokenizer(remaining, "\t\n\r\">#");
That's a delimiter set for the tokenizer. It is not a regular expression as you originally suspected.
From the documentation of the StringTokenizer
constructor:
The characters in the delim argument are the delimiters for separating tokens. Delimiter characters themselves will not be treated as tokens.
The documentation for the constructor overload that does not have the delim
argument gives an idea of what type of string might be expected:
Constructs a string tokenizer for the specified string. The tokenizer uses the default delimiter set, which is
" \t\n\r\f"
: the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.
The code you have is specifying a different set of delimiters from the default.