VgsRegexValidator

class VgsRegexValidator(val regex: String, val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that requires the value to fully match a regular expression.

Parameters

regex

Java regular expression the value must match.

errorMsg

message returned when the value does not match.

Constructors

Link copied to clipboard
constructor(regex: String, errorMsg: String = ERROR_MESSAGE)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Result(val isValid: Boolean, val errorMsg: String? = null) : VgsTextFieldValidationResult

Properties

Link copied to clipboard
open override val errorMsg: String
Link copied to clipboard