I have big text such as :
really!!! Oh Oh! You read about them in a book and they told you to wear clothes? buahahahaham Did they also tell you how they were able to sew the leaves that they used to cover up? You amu
Also I have an arraylist of some words and expression such as really or oh oh! Now I want to count the number of occurrence of the phrases (which is in the arraylist ) in the given text above or any similar text. So for that I first split the text to words and start looping as follow:
String[] word=content.split("\\s+");
for(int j=0;j<word.length;j++){
if(sexuality.contains(word[j])){
swCount=sw+1;
}
But this does not work since the oh oh! or really cannot be picked by the above method. Can anyone help?