Testing StringTokenizer Tokens against a text pattern
So I am pulling a record from a database that is delimited by commas. I parse it using stringtokenizer into tokens. I want to find a way to test each token to see if it contains a certain word or words. I am unfamiliar with reg ex, is there a simple way to test the string and see if it is the word I am looking for?
This is one of my attempts in code to check the token against the string "zebra" to see if it contains that, but it outputs nothing. I'm not sure how I need to modify this to check inside tokens for words...
String m = "Zebra";
for(int j=0; j<149; j++)
StringTokenizer parse = new StringTokenizer(Overview[j], ";");
Here is my compiler output
Compiling 1 source file to
BUILD SUCCESSFUL (total time: 0 seconds)
Everything outputs fine when I just use System.out.println(parse.nextToken());