jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

Accommodates custom regular expression validators.

Special Note

Remember that the regular expression is a string. If your expression contains characters that must be escaped you should include the escape characters in the parameters. Example "^[2][\d][\d]$" should be entered into your parameters as "^[2][\\d][\\d]$"

Parameters

( options ) Includes all optional properties applied to all validators

( regex ) String value consisting of a valid regular expression

Example

[[Name]]
spec['Name'].regex(
	'"(?=^.{6,100}$).*$"',
	{ 
		action: "onBlur", 
		message: "Minimum of 6 characters required" 
	}
);

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.