import re string='臺中市南屯區埔興段35-12地號' regex = re.compile(r'段(\d+-*\d*)') match = regex.search(string) print(match.group(1)).
確定! 回上一頁