|
@@ 72-76 (lines=5) @@
|
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/* 지번 주소 */ |
| 72 |
|
if(preg_match('/\(.+\s.+[읍면동리(마을)(0-9+가)]\s[0-9-]+\)/', $output[1], $matches)) |
| 73 |
|
{ |
| 74 |
|
$output[1] = trim(str_replace($matches[0], '', $output[1])); |
| 75 |
|
$output[2] = $matches[0]; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/* 부가 정보 */ |
| 79 |
|
if(preg_match('/\(.+[읍면동리(마을)(0-9+가)](?:,.*)?\)/u', $output[1], $matches)) |
|
@@ 79-83 (lines=5) @@
|
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
/* 부가 정보 */ |
| 79 |
|
if(preg_match('/\(.+[읍면동리(마을)(0-9+가)](?:,.*)?\)/u', $output[1], $matches)) |
| 80 |
|
{ |
| 81 |
|
$output[1] = trim(str_replace($matches[0], '', $output[1])); |
| 82 |
|
$output[4] = $matches[0]; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/* 상세 주소 */ |
| 86 |
|
if(preg_match('/^(.+ [가-힝]+[0-9]*[동리로길]\s*[0-9-]+(?:번지?)?),?\s+(.+)$/u', $output[1], $matches)) |
|
@@ 86-90 (lines=5) @@
|
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/* 상세 주소 */ |
| 86 |
|
if(preg_match('/^(.+ [가-힝]+[0-9]*[동리로길]\s*[0-9-]+(?:번지?)?),?\s+(.+)$/u', $output[1], $matches)) |
| 87 |
|
{ |
| 88 |
|
$output[1] = trim($matches[1]); |
| 89 |
|
$output[3] = trim($matches[2]); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
return $output; |
| 93 |
|
} |