note 59246 rejected from function.eregi by nlopess
| From: | nlopess@php.net | Date: | Wed, 30 Nov 2005 18:20:46 +0000 |
| Subject: | note 59246 rejected from function.eregi by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99371@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I was getting the error:
Warning: eregi() [function.eregi]: REG_BADBR in C:\Webpages\icp\addproduct.php on line 42
This means that the expression match is too long in the {} section. I was trying to match:
if(eregi("^[[:alnum:].' -]{10,300}$",stripslashes(trim($_POST['desc']))))
I worked out that the max length of the expression is 255 chars. What do you do if you need longer?
I'm just putting this in for newbies, as it took me a while to find anything on REG_BADBR.