note 103601 rejected from function.preg-match by danbrown
| From: | danbrown@php.net | Date: | Thu, 21 Apr 2011 22:46:53 +0000 |
| Subject: | note 103601 rejected from function.preg-match by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179066@lists.php.net to get a copy of this message | ||
Note Submitter: rubio dot marr at gmail dot com
----
Warning (2): preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash
[CORE\cake\libs\model\model.php, line 2611]
I keep getting this warning message.
Anyone know how to get rid of it?
$valid = preg_match($rule, $data[$fieldName]);
That's the code im using right now.