Finding capitalized words: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "<source lang="python"> import re pat = re.compile(r"\b[A-Z]+\b") print pat.findall(text) </source>")
(No difference)

Revision as of 13:55, 16 March 2011

import re
pat = re.compile(r"\b[A-Z]+\b")
print pat.findall(text)