Q:

Find Capital words in java

How can I extract two or more words that separated by white space which begin with capital letter and save them as a single token in java ?

A:

You can use this regexp to find several words within the sentence, space is used as the split character, you can add others.
((?<=\s)[A-Z][\w]*\s)+[A-Z][\w]*(?=\s)

