python 正则匹配的re.search 例子
#!/usr/bin/env python#coding:utf-8
import re
err=("stderr: 'Permission denied (publickey) fatal: Could not read from remote repository")
matchpro = re.search( r'Permission denied \(publickey\)', err, re.M|re.I)
print matchpro.group()
页:
[1]