I am trying to validate my input with ereg but I get the error "Warning:
REG_BADBR" when I try over 255 characters.  Is there anyway around this?

Works
=====
if(eregi('^[A-Za-z]{1,255}$', "test sentence"))
  echo "valid input";

Doesn't Work
============
if(eregi('^[A-Za-z]{1,256}$', "test sentence"))
  echo "valid input";




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to