What does it mean "[^a-zA-Z]+" ?
I am a beginner in JAVA and not getting what does it mean .
What does it mean "[^a-zA-Z]+" ?
I am a beginner in JAVA and not getting what does it mean .
It means split the string on sequences of one or more consecutive non-letters. Study https://en.wikipedia.org/wiki/Regular_expression
Eg. if s="abc, zzz!,ccc=ddd0eee"
then words = {"abc", "zzz", "ccc", "ddd", "eee"}
It's regular expression. This one mean "match all strings that contain a non-letter". Also you can learn regex https://www.marksanborn.net/howto/learning-regular-expressions-for-beginners-the-basics/