I'm trying to capture all words starting with upper case going one after another and preceding the Inc word. For example, to capture Test Alphabet from the whole row Parent company Test Alphabet Inc. announced. I made a regular expression pattern:
([A-Z]{1}[a-z]+)+
which takes all words starting with upper case. But it grabs Parent, which is not needed. When I try to limit the condition in this way:
([A-Z]{1}[a-z]+)+ (?=(Inc))
it takes only Alphabet and doesn't grab Test word which is needed.
Please help me understand how to grab all words starting with upper case following one another and preceding Inc word?
Thanks in advance!