摘要: import rer=r'(?<=charset=)(.+[[])(?P<groupname1>.*?)[s(bc)k]\("' #待分析的正则表达式s=re.subn(r'\[(?![?]).*?\]','',r) #排除[]s=re.subn(r'\\\(','',s[0]) #排除\(s=re.subn(r'\?P<','',s[0]) #排除(?P<l=re.... 阅读全文
posted @ 2009-09-06 16:12 电电儿 阅读(240) 评论(0) 推荐(0) 编辑