Skip to content

Commit

Permalink
Merge pull request #381 from kobotoolbox/regex_email_update
Browse files Browse the repository at this point in the history
Update restrict_responses.md
  • Loading branch information
JessRoberts-Kobo authored Nov 21, 2024
2 parents 1e7877a + 6062ae2 commit 97c9fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/restrict_responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +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,}$')` 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` |
| `regex(., '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*(\.[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)*\.[a-zA-Z]{2,}$')` | Restrict input to 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 97c9fb7

Please sign in to comment.