Regular Expressions 101

Library entries

Taiwan Address regex

Vote

0

Regular Expression
python

"
^(\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

Loading markdown...
Submitted by cys0941 - 2 years ago