Skip to content

Commit

Permalink
Update restrict_responses.md
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
nanometrenat committed Apr 20, 2023
1 parent 722d8b7 commit 277e107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/restrict_responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ guarantee that they are valid, only that they follow an expected pattern.</p>

| **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

Expand Down

0 comments on commit 277e107

Please sign in to comment.