I'm just trying to create a eregi expression that will evaluate a zip
code... and I cannot get it to work... can anyone assist me with this?  --
also, is there a site that shows regular expression examples for checking
fields like, zip codes, phone numbers, etc...

if(!(eregi("(^[0-9]{5})(\\-([0-9]{4}$))?", $data)))
     $err[] = $desc . " - Invalid Zip Code " . $req;

Thanks
Jason



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to