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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3541 | ||
| 929 |
|
19년 전 | 2701 | |
| 928 |
|
19년 전 | 3452 | |
| 927 |
|
19년 전 | 3442 | |
| 926 |
|
19년 전 | 3147 | |
| 925 | 19년 전 | 5431 | ||
| 924 |
|
19년 전 | 2167 | |
| 923 |
|
19년 전 | 2216 | |
| 922 |
|
19년 전 | 2310 | |
| 921 |
|
19년 전 | 3404 | |
| 920 | 19년 전 | 3704 | ||
| 919 |
|
19년 전 | 3745 | |
| 918 |
|
19년 전 | 2354 | |
| 917 |
|
19년 전 | 2392 | |
| 916 |
|
19년 전 | 2696 | |
| 915 | 19년 전 | 3038 | ||
| 914 | 19년 전 | 2457 | ||
| 913 | 19년 전 | 2625 | ||
| 912 | 19년 전 | 2454 | ||
| 911 | 19년 전 | 2211 | ||
| 910 | 19년 전 | 3243 | ||
| 909 | 19년 전 | 3295 | ||
| 908 | 19년 전 | 3031 | ||
| 907 |
|
19년 전 | 4870 | |
| 906 |
|
19년 전 | 2705 | |
| 905 |
|
19년 전 | 3315 | |
| 904 |
|
19년 전 | 3139 | |
| 903 |
|
19년 전 | 1987 | |
| 902 |
|
19년 전 | 3130 | |
| 901 |
|
19년 전 | 1869 | |
| 900 |
|
19년 전 | 2328 | |
| 899 |
|
19년 전 | 2400 | |
| 898 |
|
19년 전 | 3982 | |
| 897 |
|
19년 전 | 3183 | |
| 896 |
|
19년 전 | 3097 | |
| 895 |
|
19년 전 | 2535 | |
| 894 |
|
19년 전 | 2009 | |
| 893 |
|
19년 전 | 1643 | |
| 892 |
|
19년 전 | 2410 | |
| 891 |
|
19년 전 | 2327 | |
| 890 |
|
19년 전 | 1813 | |
| 889 |
|
19년 전 | 1810 | |
| 888 |
|
19년 전 | 2605 | |
| 887 |
|
19년 전 | 2579 | |
| 886 |
|
19년 전 | 1873 | |
| 885 |
|
19년 전 | 2107 | |
| 884 |
|
19년 전 | 3299 | |
| 883 |
|
19년 전 | 1949 | |
| 882 |
|
19년 전 | 2494 | |
| 881 |
|
19년 전 | 2577 | |
| 880 |
|
19년 전 | 2657 | |
| 879 |
|
19년 전 | 2936 | |
| 878 |
|
19년 전 | 2558 | |
| 877 |
|
19년 전 | 2982 | |
| 876 |
|
19년 전 | 2761 | |
| 875 |
|
19년 전 | 3521 | |
| 874 | 19년 전 | 1870 | ||
| 873 | 19년 전 | 2728 | ||
| 872 |
|
19년 전 | 2369 | |
| 871 |
|
19년 전 | 2015 | |
| 870 |
|
19년 전 | 2423 | |
| 869 |
|
19년 전 | 1869 | |
| 868 |
|
19년 전 | 5437 | |
| 867 |
|
19년 전 | 2257 | |
| 866 |
|
19년 전 | 4252 | |
| 865 |
|
19년 전 | 2298 | |
| 864 | 19년 전 | 1842 | ||
| 863 | 19년 전 | 2599 | ||
| 862 | 19년 전 | 2330 | ||
| 861 | 19년 전 | 2529 | ||
| 860 | 19년 전 | 2158 | ||
| 859 | 19년 전 | 3918 | ||
| 858 | 19년 전 | 3415 | ||
| 857 | 19년 전 | 2198 | ||
| 856 |
Power
|
19년 전 | 2106 | |
| 855 | 19년 전 | 1971 | ||
| 854 | 19년 전 | 1998 | ||
| 853 |
pearly
|
19년 전 | 4382 | |
| 852 |
pearly
|
19년 전 | 3352 | |
| 851 | 19년 전 | 2773 | ||
| 850 |
pearly
|
19년 전 | 3348 | |
| 849 |
pearly
|
19년 전 | 3007 | |
| 848 |
pearly
|
19년 전 | 2841 | |
| 847 | 19년 전 | 2354 | ||
| 846 |
|
19년 전 | 2163 | |
| 845 |
pearly
|
19년 전 | 2485 | |
| 844 | 19년 전 | 3095 | ||
| 843 | 19년 전 | 2126 | ||
| 842 |
pearly
|
19년 전 | 3121 | |
| 841 |
pearly
|
19년 전 | 3242 | |
| 840 | 19년 전 | 2919 | ||
| 839 |
|
19년 전 | 1935 | |
| 838 |
|
19년 전 | 1700 | |
| 837 |
|
19년 전 | 2321 | |
| 836 |
|
19년 전 | 2261 | |
| 835 |
|
19년 전 | 1639 | |
| 834 |
|
19년 전 | 1664 | |
| 833 |
|
19년 전 | 1568 | |
| 832 |
|
19년 전 | 2065 | |
| 831 |
|
19년 전 | 1616 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기