Page 1 of 1

eregi

Posted: Thu Aug 09, 2007 10:55 pm
by krraleigh
Trying to allow for the hypen and the period in email addresses
My expression is kicking them out

if (!eregi('^[a-z0-9_\-\\.\]+@[a-z0-9_\-\]+\.[a-z]{2,4}$', $field))

What am I missing here?

kevin

My BAD getting punchy here

Posted: Thu Aug 09, 2007 11:02 pm
by krraleigh
I solved the problem
sorry for wasting your time

Kevin