This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

pregMatch

Checks a field value using the configured perl regular expression

You can use this check to do existing check your own way or to make checks no built-in error check exists for.

Version added

1.0.0

email {
  errorCheck.1 = pregMatch
  errorCheck.1.value = /\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/
}
Example how to validate an email (Source: http://www.regular-expressions.info/regexbuddy/email.html)
honeypot {
  errorCheck.1 = pregMatch
  errorCheck.1.value = /^$/
}
Example how to check if a field is empty (useful for honeypot fields)

Properties

.value

Data type

String | cObj

Version added

1.0.0