Finding capitalized words

From XPUB & Lens-Based wiki
Revision as of 12:55, 16 March 2011 by Aymeric Mansoux (talk | contribs) (Created page with "<source lang="python"> import re pat = re.compile(r"\b[A-Z]+\b") print pat.findall(text) </source>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
import re
pat = re.compile(r"\b[A-Z]+\b")
print pat.findall(text)