From 277e107501fe66e6c20530c8d8925541e918a89c Mon Sep 17 00:00:00 2001 From: Natalie <33625192+nanometrenat@users.noreply.github.com> Date: Thu, 20 Apr 2023 13:17:32 +0100 Subject: [PATCH] Update restrict_responses.md Updating email address regex to include worldwide domains - see https://community.kobotoolbox.org/t/request-for-edit-to-support-article-regex/29410/1 for conversation. Thank you very much, most appreciated! --- source/restrict_responses.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/restrict_responses.md b/source/restrict_responses.md index e2268dc0..ec37cbc2 100644 --- a/source/restrict_responses.md +++ b/source/restrict_responses.md @@ -148,8 +148,7 @@ guarantee that they are valid, only that they follow an expected pattern.

| **Regex** | **Description** | | :----------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------- | -| `regex(., '^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+[.][A-Za-z]{2,}$')` | Restrict an input with a valid email address e.g. `example.domin.com` | -| `regex(., '^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+[.][A-Za-z.]{2,}$')` or `regex(., '^([\W\d\D]+[@][\D]+[.][\D]{2,})+$')` | Restrict an input with a valid email address e.g. `example.domin.com.np` | +| `regex(., '^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+[.][A-Za-z.]{2,}$')` or `regex(., '^([\W\d\D]+[@][\D]+[.][\D]{2,})+$')` | Restrict an input with a valid email address e.g. `example.domain.com` or `example.domain.com.np` | ## Examples related to use of time inputs