[python] unpack regular expression match results
使用findall()
(unpacked, item1, item2, item3) = re.compile(r'your regular expression').findall(string)[0]
来源:https://stackoverflow.com/questions/15340582/python-extract-pattern-matches
使用findall()
(unpacked, item1, item2, item3) = re.compile(r'your regular expression').findall(string)[0]
来源:https://stackoverflow.com/questions/15340582/python-extract-pattern-matches