正则怎么写
<input type="hidden" id="jsalgo" name="mgj_algo" value="Wjnl7Oe+KTg=" />怎么的到Wjnl7Oe+KTg=
[解决办法]
>>> s = '''<input type="hidden" id="jsalgo" name="mgj_algo" value="Wjnl7Oe+KTg=" />'''
>>> s
'<input type="hidden" id="jsalgo" name="mgj_algo" value="Wjnl7Oe+KTg=" />'
>>> import re
>>> res = r'value="(.*?)"'
>>> m = re.findall(res,s)
>>> print m[0]
Wjnl7Oe+KTg=
>>>