Pages for logged out editors learn more
import re pat = re.compile(r"\b[A-Z]+\b") print pat.findall(text)