public boolean matches(String regex)
- Tells whether or not this string matches the given regular expression.
public boolean matches(String regex)
StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.
Princeton : http://www.cs.princeton.edu/~wayne/cs423/lectures.html