try this pattern((?:[A-Z]\.)+[A-Z]?|[a-zA-Z']+)
Demo
1
solved What is the java regex to extract words and abbreviations? [closed]
try this pattern((?:[A-Z]\.)+[A-Z]?|[a-zA-Z']+)
Demo
1
solved What is the java regex to extract words and abbreviations? [closed]