For example, we validate a text field to input mail addresses. We need to write code for checking whether the mail addresses exist or not, but we can check format of them with validating input.
In this case, we check the addresses include at mark (@). If the addresses donft include at mark, pass_mail
variable is true
.
Mail : CKTextField { value = mail validate = "mail =~ /[^@]+@(.+)/" pass = pass_mail }
This example is attached to archive as Registration application.