layout: default title: RegexFieldValidator Annotation parent: title: Annotations url: annotations.html

RegexFieldValidator Annotation

Validates a string field using a regular expression.

Usage

The annotation must be applied at method level.

Parameters

Examples

 @RegexFieldValidator( key = "regex.field", regex = "yourregexp")