There are several strings in my array list and some of them start with a specific prefix -for example ("AFI"). I want to remove these strings from the array list. Other strings contain more than two words, for example ("Edit this template"). I want to delete them too, as well as the strings that contain only one word.
I know that I should use patterns, but can't find exactly what I should use. Would be happy if you help me to deal with this problem.