Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Last active August 29, 2015 13:59
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 lufeihaidao/10587981 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10587981 to your computer and use it in GitHub Desktop.
Q3 of python challenge
# 我的代码比较笨,但是方法是一样的,就不贴上来了。
import re
s = '''
copy from the source page
'''
print ''.join(re.findall('[^A-Z][A-Z]{3}([a-z])[A-Z]{3}[^A-Z]', s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment