Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8264
  • 博文数量: 6
  • 博客积分: 161
  • 博客等级: 入伍新兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-02 12:56
文章分类

全部博文(6)

文章存档

2017年(1)

2014年(1)

2011年(1)

2010年(3)

我的朋友
最近访客

分类: Python/Ruby

2010-03-03 12:58:29

One small letter, surrounded by EXACTLY three big bodyguards on each of its sides
大概是找出两边是三个大写字母中间是一个小写字母的字符串
 

a='''那段字串'''
print ''.join([x[4] for x in re.findall('[^A-Z][A-Z]{3}[a-z][A-Z]{3}[^A-Z]',a)])


阅读(480) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~