Skip to content

Regular Expression Examples

Hunter Wu edited this page Jan 16, 2019 · 1 revision

Taiwan Address

var numrmt = '[0-9一二三四五六七八九零十1234567890○]';
var addrmt = new RegExp('(([台臺][北中南東]|北|新北|高|宜蘭|花蓮|金門|南投|屏東|苗栗|桃園|高雄|基隆|連江|雲林|新竹|嘉義|彰化|澎湖)[縣市](.{2,5}[鄉鎮市區])?(.{2,5}[村里鄰])?(.{2,5}[路街道段])?(' + numrmt + '段)?(.{1,4}巷)?(' + numrmt + '{1,4}弄)?(.{1,6}[號号])([之bB]' + numrmt + '|' + numrmt + '{1,2}[fFfF樓]){0,1})', 'g');
Clone this wiki locally