http://qs321.pair.com?node_id=704936


in reply to Re: Extract sequence of UC words?
in thread Extract sequence of UC words?

\b([A-Z\s]+)\b

This doesn't work because the space in the character class means it matches the first single space in the line and returns that. You need to ensure that the match starts with an UPPER alpha, and then continues with UPPER alpha or space:

print $data =~ m/(\b[A-Z][A-Z ]+\b)/;; TEST SENTENCE

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.