Last active
August 29, 2015 13:59
-
-
Save lufeihaidao/10587981 to your computer and use it in GitHub Desktop.
Q3 of python challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 我的代码比较笨,但是方法是一样的,就不贴上来了。 | |
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