Hi: I am working on a problem that requires that I find a keyword within a text file. I have tokenized the input and I can easily locate the keyword as an exact token match but if the keyword appears within a token then it is missed. example: keyword = mary File contains "mary had a little lamb". Keyword is found. File contains "littlemary had a lamb". Keyword is not found. Can someone please help me solve the problem? Thanks.
joeF, Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however I want to remind you ONCE AGAIN, your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy. You can change your profile here. Thanks again and we hope to see you around the ranch!! Cindy
"JavaRanch, where the deer and the Certified play" - David O'Meara
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad: