I'm struggling with Regex (which I don't really know)
I'm trying to extract the words in upper case from a document that contains entries like
"ADA VILLAS, Stroud Green (1855) Under Crouch Hill in the 1866 directory; in the 1871 Census. In the 1874 directory under Crouch Hill and Birkbeck Road, but by 1877 under Birkbeck Road. By 1882 nos.157-171 ELTHORNE ROAD."
What I want to do is to extract the start string
"ADA VILLAS"
and then the second and any additional strings in Upper case like
"ELTHORNE ROAD"
Each upper case phrase can have two to four words - and sadly doesn't contain any fixed terminator - the first comma in this example is not always there - it can be a space, a bracket, comma or full stop.
By trial and error worked out that
\b[A-Z]{2,}\b
matches any uppercase word longer than 2 characters, so I can split the words into an array, and then use the Regex to extract any uppercase words into an array - this gives in this example an array [ADA, VILLAS, ELTHORNE, ROAD]
But I really want to extract the word combinations if this is possible (so ADA VILLAS, ELTHORNE ROAD).
Many thanks if anyone has any ideas.
Regards
David Brown