Skip to content

Instantly share code, notes, and snippets.

@gregelin
Created October 9, 2010 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregelin/617827 to your computer and use it in GitHub Desktop.
Save gregelin/617827 to your computer and use it in GitHub Desktop.
Find all cap words, as in an acroynym
[A-Z][A-Z-]*\b
Python find Acronynms
import re
re.findall("[A-Z][A-Z-][A-Z-]*\\b",text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment