The email verification link I create to validate a user is as follows:
site_url/user@example.com/hash_to_verify
I'm trying to route a URL like the one above to my activate_user method in my registration controller. I tried using the same regex used in the valid_email method in CodeIgniter, but it doesn't seem to work (doesn't route to activate_user method):
$route['registration/(/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix)/(:any)'] = 'registration/activate_user/$1';
1) Where did I go wrong in my route?
2) Is formatting my URL this way acceptable to verify emails?
Thanks