Need code to validate the confirmation of password, included is the validation of password field:
private fun passwordValidate(text: String?): Boolean {
var p = Pattern.compile("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@\$!%*?&])[A-Za-z\\d@\$!%*?&]{5,20}\$")
var m = p.matcher(text)
return m.matches()
}
The confirm password I would guess would start of similar as follows:
private fun confirmpasswordValidate(text: String?): Boolean {
var p = Pattern.compile