Regular Expression Validator

Overview

Defines that field must march regular expression defined in option.

Attributes

name

type

required

default value

description

pattern

string

yes

none

Regular expression.

message

string

no

none

Message that will be displayed in case of error.

Example

<validatesRegex pattern="[a-z]+@[a-z]+.[a-z]{2,3}" message="error.invalid.email" />