I ran into the following warning while using a validation rule in CakePHP:
Warning (2): preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash [CORE/cake/libs/model/model.php, line 2431]
The problem was I spelled the validation rule incorrectly. I used 'nonempty' instead of 'notempty'. The correct usage is:
var $validate = array(
'description' => array('notempty'),
);
If you experience this error, then make sure all built in validation rules are spelled correctly.
yo