Skip to content

Instantly share code, notes, and snippets.

@xhinking
Created March 21, 2013 17:31
Show Gist options
  • Select an option

  • Save xhinking/5214922 to your computer and use it in GitHub Desktop.

Select an option

Save xhinking/5214922 to your computer and use it in GitHub Desktop.
Python Challenge Level 3 Code
import re
text = open("words3.txt").read()
print ''.join(re.findall('[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]', text))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment