Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Extract sequence of UC words?by BrowserUk (Patriarch) |
on Aug 18, 2008 at 14:10 UTC ( [id://704936]=note: print w/replies, xml ) | Need Help?? |
\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:
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.
In Section
Seekers of Perl Wisdom
|
|