I am performing a keyword search on a text file and returning all the sentences and count of keywords in the sentence. That part is not a problem. My problem is with searching for and counting only the keyword.
For example, “and” which comes in the form " and “, " and.”, " and/", and probably more, but not “ampersand”, “operand”, “Anderson”.
So far I have been counting all of the words “and”, and the words containing “and”.