正则表达式没写正确,麻烦哪个大佬帮帮忙
正则表达式提取字符串import re
url="<input type=\"hidden\" name=\"fkid\" id=\"fkid\" value= \"WC39ZUyXRgdGWzGOCElWoPC0VZwLPp3btx2MtLWz5ayFzeF7lIlSUAmyfOlD55/lJpO2Y0tiwCrVRqgEvbbEqPpyklNkmtI+zedyr1KaU4fwipJmWEu8RT3mOFg7mZIOpkJlhk/gbBtr8WQCkkJTqhEZ8pCNkGi2yQhzpvB+jhXgjilZNhpnfHKTjrztQ+ARHnSZ1I+X2CrKBKeE8GYseoSZ8E+ndAihumqOnJS7eEoA/8slNy9spNCr4frWO7MTBDccr2HlqkJs=1487577677129\">"
restr=re.compile("name=\"fkid\" id=\"fkid\" value=\"(\S+)\">")
Extra=restr.findall(url)
print Extra
网友评论