Regex Rule

class RegexRule(regexRule: String, val errorMessage: String) : BaseRule

Author

Jimly A.

Since

06-Jun-20.

Parameters

regexRule

regex to validate

errorMessage

message to display when view not validated

Constructors

Link copied to clipboard
fun RegexRule(regexRule: String, errorMessage: String)

Functions

Link copied to clipboard
open override fun validate(view: View): Boolean

Method to validate view with regex

Properties

Link copied to clipboard
open override val errorMessage: String

Sources

Link copied to clipboard