RegexValidator

info.fingo.spata.schema.validator.RegexValidator

Regular expression validator for strings.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(regex: Regex): Validator[String]

Creates regex validator.

Creates regex validator.

Value parameters

regex

the regular expression

Attributes

Returns

validator

def apply(regex: String): Validator[String]

Creates regex validator.

Creates regex validator.

Value parameters

regex

the regular expression

Attributes

Returns

validator