python - Why does match match the result <_sre.SRE_Match object; span=(0, 54), match=''>
过去多啦不再A梦
过去多啦不再A梦 2017-05-18 10:59:50
0
1
1294
from_url = re.match(r'[\%\w]+',from_ur)

Why is the result of using re.match like this?

<_sre.SRE_Match object; span=(0, 54), match='%E8%8B%A6%E8%8D%9E%E5%9B%BE%E7%89%87%E5%A4%A7%E5%>: 1,
<_sre.SRE_Match object; span=(0, 36), match='%E8%8B%A6%E8%8D%9E%E5%9B%BE%E7%89%87'>: 1,
 <_sre.SRE_Match object; span=(0, 54), match='%E7%BB%BF%E8%8C%B6%E5%9B%BE%E7%89%87%E5%A4%A7%E5%>: 1,

How to make him appear like this?

%E7%BB%BF%E8%8C%B6%E5%9B%BE%E7%89%87%E5%A4%A7%E5%
%E8%8B%A6%E8%8D%9E%E5%9B%BE%E7%89%87
%E8%8B%A6%E8%8D%9E%E5%9B%BE%E7%89%87%E5%A4%A7%E5%
过去多啦不再A梦
过去多啦不再A梦

reply all(1)
阿神

Okay, just add .group(0)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template