← Back to plugin index

Regex String Validator

Description

Validate a string value using a regular expression.

If the validation fails, the corresponding error type is WRONG_FORMAT.

Type name
RegexStringValidator
Class
com.airlock.iam.common.application.configuration.validation.RegexStringValidatorConfig
May be used by
Properties
Validation Pattern (validationPattern)
Description

Pattern for validating a string value.

The provided regex is used in Java for server-side validation and potentially in Javascript for client-side validation. The capabilities of these regex interpreters differ. Therefore make sure to only use patterns that are equivalent in both types of interpreters.

Attributes
RegEx
Mandatory
Validation Pattern Case Sensitive (validationPatternCaseSensitive)
Description
If the above validation pattern is case-sensitive.
Attributes
Boolean
Optional
Default value
true
YAML Template (with default values)

type: RegexStringValidator
id: RegexStringValidator-xxxxxx
displayName: 
comment: 
properties:
  validationPattern:
  validationPatternCaseSensitive: true