eregi

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
krraleigh
Forum Commoner
Posts: 86
Joined: Tue Jul 17, 2007 2:52 pm

eregi

Post 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
krraleigh
Forum Commoner
Posts: 86
Joined: Tue Jul 17, 2007 2:52 pm

My BAD getting punchy here

Post by krraleigh »

I solved the problem
sorry for wasting your time

Kevin
Post Reply