{"id":3,"date":"2013-10-19T00:43:09","date_gmt":"2013-10-19T00:43:12","guid":{"rendered":"https:\/\/dcb95regular-expressions.jpg"},"modified":"2015-08-25T19:34:23","modified_gmt":"2015-08-26T01:34:23","slug":"validar-un-correo-con-php-mediante-expresiones-regulares","status":"publish","type":"post","link":"https:\/\/emanuelpaxtian.com\/blog\/validar-un-correo-con-php-mediante-expresiones-regulares\/","title":{"rendered":"Validar un Correo con Php mediante expresiones regulares"},"content":{"rendered":"<p>Esta es una sencilla funci\u00f3n en php para validar si se le pasa un correo, la funcion devuelve true o false<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">function validarEmail($email)\r\n{\r\n    return preg_match(&quot;#^(((( &#x5B;a-z\\d]  &#x5B;\\.\\-\\+_] ?)*) &#x5B;a-z0-9] )+)\\@(((( &#x5B;a-z\\d]  &#x5B;\\.\\-_] ?){0,62}) &#x5B;a-z\\d] )+)\\.( &#x5B;a-z\\d] {2,6})$#i&quot;, $email);\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Esta es una sencilla funci\u00f3n en php para validar si se le pasa un correo, la funcion devuelve true o false function validarEmail($email) { return preg_match(&quot;#^(((( &#x5B;a-z\\d] &#x5B;\\.\\-\\+_] ?)*) &#x5B;a-z0-9]&hellip;<\/p>\n","protected":false},"author":1,"featured_media":656,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":0,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media\/656"}],"wp:attachment":[{"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emanuelpaxtian.com\/blog\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}