Finding capitalized words

From Media Design: Networked & Lens-Based wiki
Jump to navigation Jump to search
import re
pat = re.compile(r"\b[A-Z]+\b")
print pat.findall(text)