{"id":3519,"date":"2014-07-01T11:20:24","date_gmt":"2014-07-01T02:20:24","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=3519"},"modified":"2018-11-27T10:14:37","modified_gmt":"2018-11-27T01:14:37","slug":"email-address-validation-using-regular-expression","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=3519","title":{"rendered":"Email Address Validation Using Regular Expression"},"content":{"rendered":"\n<pre class=\"lang:c# decode:true \" >public static class TestEmail\r\n{\r\n  \/\/\/ &lt;summary&gt;\r\n  \/\/\/ Regular expression, which is used to validate an E-Mail address.\r\n  \/\/\/ &lt;\/summary&gt;\r\n  public const string MatchEmailPattern = \r\n\t\t\t@\"^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@\"\r\n     + @\"((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?\r\n\t\t\t\t[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.\"\r\n     + @\"([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?\r\n\t\t\t\t[0-9]{1,2}|25[0-5]|2[0-4][0-9])){1}|\"\r\n     + @\"([a-zA-Z0-9]+[\\w-]+\\.)+[a-zA-Z]{1}[a-zA-Z0-9-]{1,23})$\";\r\n\r\n  \/\/\/ &lt;summary&gt;\r\n  \/\/\/ Checks whether the given Email-Parameter is a valid E-Mail address.\r\n  \/\/\/ &lt;\/summary&gt;\r\n  \/\/\/ &lt;param name=\"email\"&gt;Parameter-string that contains an E-Mail address.&lt;\/param&gt;\r\n  \/\/\/ &lt;returns&gt;True, when Parameter-string is not null and \r\n  \/\/\/ contains a valid E-Mail address;\r\n  \/\/\/ otherwise false.&lt;\/returns&gt;\r\n  public static bool IsEmail(string email)\r\n  {\r\n     if (email != null) return Regex.IsMatch(email, MatchEmailPattern);\r\n     else return false;\r\n  }\r\n}        <\/pre>\n<p>\ucc38\uc870 : http:\/\/www.codeproject.com\/Articles\/22777\/Email-Address-Validation-Using-Regular-Expression<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>public static class TestEmail { \/\/\/ &lt;summary&gt; \/\/\/ Regular expression, which is used to validate an E-Mail address. \/\/\/ &lt;\/summary&gt; public const string MatchEmailPattern = <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=3519\" title=\"Email Address Validation Using Regular Expression\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":2331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[169],"class_list":["post-3519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devc","tag-email-"],"jetpack_featured_media_url":"https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2013\/05\/C_icon.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3519"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/media\/2331"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}