Finding capitalized words

From XPUB & Lens-Based wiki
Revision as of 12:48, 17 November 2011 by Michael Murtaugh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
import re
pat = re.compile(r"\b[A-Z]+\b")
print pat.findall(text)