I am trying to match all consecutive all caps words/phrases using regex in Python. Given the following:
text = \"The following words are ALL CAPS. The follow
Your regex is relying on explicit conditions(space after letters).
matches = re.findall(r"([A-Z]+\s?[A-Z]+[^a-z0-9\W])",text)
Capture A to Z repetitions if there are no trailing lowercase or none-alphabet character.