Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
Python

r"
^(\D{2}[縣$|市$])?(\D{1,3}[鄉$|鎮$|市$|區$])?(\D+[村$|里$])?(\D+[])?(\D+[路$|街$|大道$])?(\D{1}[段$])?(\d+[巷$])?(\d+[弄$])?((\d{1,4}[])?(\d{1,4}[號$]))([\D]{1,3}[樓$])?([][\D|\d]+)?(\D+[室$])?(\D)?$
"
gm

Description

no description available

Submitted by cys0941 - 5 years ago