i want to check if the particular word is exits or not in the string with ignore case.
My String is - "Hello world , Wassup? , good moRNING".
Now i want to check if the word - "hello world".
so i have tried the following:
String fullText = "Hello world , Wassup? , good moRNING";
String singleWord = "hello world";
boolean find;
if (fullText.matches(singleWord)) {
find = True;
}
I have also tried with contains
but this is not working.
How can i find this particular word ?