# -*- coding:utf-8 -*- import re pattern=re.compile(r'^[^\\]*\\[^\\]*\\[^\\]*$',re.S) s1='abc\def\gh\eer' m=re.match(pattern,s1) if m: print 'match' else: print 'not match'
37,720
社区成员
34,239
社区内容
加载中
试试用AI创作助手写篇文章吧