# Formatos para direcciones e-mail o direcciones de viviendas

**URL:** <https://forum.getodk.org/t/formatos-para-direcciones-e-mail-o-direcciones-de-viviendas/10335>\
**Category:** Support\
**Created:** [October 25, 2017, 6:44am UTC](https://forum.getodk.org/t/formatos-para-direcciones-e-mail-o-direcciones-de-viviendas/10335 "2017-10-25T06:44:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [October 26, 2017, 3:51pm UTC](https://forum.getodk.org/t/formatos-para-direcciones-e-mail-o-direcciones-de-viviendas/10335/3 "2017-10-26T15:51:06Z")

</div>

My Spanish is not so bueno, but I agree with Jorge that you probably don't want to have strict constraints here.

This is especially true with email addresses because the [email address specification](http://emailregex.com/email-validation-summary/) is maddening. For me, the best way to validate an email is to send an email to that address with a link inside and see if someone clicks that link. The next best way, especially if you are offline, is to make sure there is no obvious typo.

So what I check is at least one non-whitespace character, followed by an `@`, followed by at least one non-whitespace character, followed by an `.`, and then at least one non-whitespace character. Something like this:  
`regex(., '\S+@\S+\.\S+')`

That should allow most common email addresses and typos like whitespaces and missing the @ and the period. Technically, this will reject valid email addresses (e.g., bob@local) but it's good enough.

---

_[View the full topic](https://forum.getodk.org/t/formatos-para-direcciones-e-mail-o-direcciones-de-viviendas/10335)._
