python regular expressions to extract the contents of the return

import re

re.findall ( '<input name = "address_id" type = "hidden" value = "(. *?)" />',neww.content.decode("utf-8 ")) # returns a list, use re.match not match the content; re.findall match all

Guess you like

Origin www.cnblogs.com/canglongdao/p/11961817.html