function _check_email(email) {
var pattern = /^(.+)@(.+)$/;
var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+";
var word="(" + atom + "|(\"[^\"]*\"))";
var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$");
var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$");
var arr = email.match(pattern);
if (!arr) return "Email address seems incorrect (check @ and .'s)";
if (!arr[1].match(user_pattern)) return "The username doesn't seem to be valid.";
var ip = arr[2].match(ip_pattern);
if (ip) {
for (var i=1; i<5; i++) if (ip[i] > 255) return "Destination IP address is invalid!";
}
else {
if (!arr[2].match(domain_pattern)) return "The domain name doesn't seem to be valid.";
var domain = arr[2].match(new RegExp(atom,"g"));
if (domain.length<2) return "This address is missing a hostname!";
if (domain[domain.length-1].length<2 || domain[domain.length-1].length>3)
return "The address must end in a three-letter domain, or two letter country.";
}
return false;
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
var pattern = /^(.+)@(.+)$/;
var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+";
var word="(" + atom + "|(\"[^\"]*\"))";
var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$");
var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$");
var arr = email.match(pattern);
if (!arr) return "Email address seems incorrect (check @ and .'s)";
if (!arr[1].match(user_pattern)) return "The username doesn't seem to be valid.";
var ip = arr[2].match(ip_pattern);
if (ip) {
for (var i=1; i<5; i++) if (ip[i] > 255) return "Destination IP address is invalid!";
}
else {
if (!arr[2].match(domain_pattern)) return "The domain name doesn't seem to be valid.";
var domain = arr[2].match(new RegExp(atom,"g"));
if (domain.length<2) return "This address is missing a hostname!";
if (domain[domain.length-1].length<2 || domain[domain.length-1].length>3)
return "The address must end in a three-letter domain, or two letter country.";
}
return false;
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 100 | ||
| 8229 | 9년 전 | 97 | ||
| 8228 |
커네드커네드
|
9년 전 | 144 | |
| 8227 | 9년 전 | 171 | ||
| 8226 | 9년 전 | 192 | ||
| 8225 | 9년 전 | 177 | ||
| 8224 | 9년 전 | 167 | ||
| 8223 | 9년 전 | 142 | ||
| 8222 |
|
9년 전 | 219 | |
| 8221 | 9년 전 | 126 | ||
| 8220 | 9년 전 | 153 | ||
| 8219 | 9년 전 | 125 | ||
| 8218 | 9년 전 | 170 | ||
| 8217 |
star3840
|
9년 전 | 142 | |
| 8216 | 9년 전 | 194 | ||
| 8215 | 9년 전 | 148 | ||
| 8214 | 9년 전 | 252 | ||
| 8213 | 9년 전 | 202 | ||
| 8212 | 9년 전 | 114 | ||
| 8211 | 9년 전 | 288 | ||
| 8210 | 9년 전 | 286 | ||
| 8209 | 9년 전 | 365 | ||
| 8208 | 9년 전 | 257 | ||
| 8207 | 9년 전 | 257 | ||
| 8206 |
|
9년 전 | 220 | |
| 8205 | 9년 전 | 207 | ||
| 8204 | 9년 전 | 165 | ||
| 8203 | 9년 전 | 254 | ||
| 8202 | 9년 전 | 172 | ||
| 8201 | 9년 전 | 212 | ||
| 8200 | 9년 전 | 201 | ||
| 8199 | 9년 전 | 243 | ||
| 8198 | 9년 전 | 207 | ||
| 8197 | 9년 전 | 190 | ||
| 8196 | 9년 전 | 582 | ||
| 8195 | 9년 전 | 187 | ||
| 8194 | 9년 전 | 318 | ||
| 8193 | 9년 전 | 198 | ||
| 8192 | 9년 전 | 229 | ||
| 8191 | 9년 전 | 177 | ||
| 8190 | 9년 전 | 179 | ||
| 8189 | 9년 전 | 233 | ||
| 8188 | 9년 전 | 165 | ||
| 8187 | 9년 전 | 177 | ||
| 8186 | 9년 전 | 173 | ||
| 8185 | 9년 전 | 347 | ||
| 8184 | 9년 전 | 138 | ||
| 8183 | 9년 전 | 348 | ||
| 8182 | 9년 전 | 204 | ||
| 8181 | 9년 전 | 166 | ||
| 8180 | 9년 전 | 737 | ||
| 8179 | 9년 전 | 516 | ||
| 8178 | 9년 전 | 346 | ||
| 8177 |
kiplayer
|
9년 전 | 359 | |
| 8176 | 9년 전 | 397 | ||
| 8175 | 9년 전 | 259 | ||
| 8174 | 9년 전 | 276 | ||
| 8173 | 9년 전 | 369 | ||
| 8172 | 9년 전 | 233 | ||
| 8171 | 9년 전 | 213 | ||
| 8170 | 9년 전 | 327 | ||
| 8169 |
커네드커네드
|
9년 전 | 286 | |
| 8168 | 9년 전 | 356 | ||
| 8167 | 9년 전 | 349 | ||
| 8166 | 9년 전 | 269 | ||
| 8165 | 9년 전 | 202 | ||
| 8164 | 9년 전 | 338 | ||
| 8163 | 9년 전 | 322 | ||
| 8162 | 9년 전 | 339 | ||
| 8161 | 9년 전 | 332 | ||
| 8160 |
|
9년 전 | 529 | |
| 8159 | 9년 전 | 464 | ||
| 8158 | 9년 전 | 282 | ||
| 8157 | 9년 전 | 406 | ||
| 8156 | 9년 전 | 295 | ||
| 8155 | 9년 전 | 281 | ||
| 8154 |
00년생용띠
|
9년 전 | 628 | |
| 8153 | 9년 전 | 263 | ||
| 8152 |
|
9년 전 | 441 | |
| 8151 | 9년 전 | 449 | ||
| 8150 | 9년 전 | 542 | ||
| 8149 |
Jangfolk
|
9년 전 | 381 | |
| 8148 | 9년 전 | 212 | ||
| 8147 | 9년 전 | 414 | ||
| 8146 | 9년 전 | 478 | ||
| 8145 | 9년 전 | 434 | ||
| 8144 | 9년 전 | 397 | ||
| 8143 | 9년 전 | 226 | ||
| 8142 | 9년 전 | 466 | ||
| 8141 | 9년 전 | 412 | ||
| 8140 | 9년 전 | 959 | ||
| 8139 | 9년 전 | 309 | ||
| 8138 |
전갈자리남자
|
9년 전 | 418 | |
| 8137 | 9년 전 | 435 | ||
| 8136 | 9년 전 | 781 | ||
| 8135 |
|
9년 전 | 820 | |
| 8134 |
PlayPixel
|
9년 전 | 549 | |
| 8133 |
|
9년 전 | 472 | |
| 8132 | 9년 전 | 492 | ||
| 8131 | 9년 전 | 846 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기