Skip to content

Instantly share code, notes, and snippets.

@htammen
Created September 11, 2019 07:07
Show Gist options
  • Save htammen/b276475267d6af00e23de6b1cce218d5 to your computer and use it in GitHub Desktop.
Save htammen/b276475267d6af00e23de6b1cce218d5 to your computer and use it in GitHub Desktop.
UI5 Input control email validation
<Input id="email1"
value="{path: '/email1', type: 'sap.ui.model.type.String', constraints: {search: '^((?!\\.)[\\w-_.]*[^.])(@\\w+)(\\.\\w+(\\.\\w+)?[^.\\W])$'}}"
type="Email"
></Input>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment