php-db | 2004071
Date: 07/15/04
- Next message: Miles Thompson: "Re: [PHP-DB] Re: Restrict account access to single user"
- Previous message: Damien Babilon: "[PHP-DB] execut MS SQL stored proc"
- In reply to: Tim Van Wassenhove: "Re: [PHP-DB] Table locking"
- Next in thread: Justin Patrin: "Re: [PHP-DB] Easy reg expression problem"
- Reply: Justin Patrin: "Re: [PHP-DB] Easy reg expression problem"
- Reply: Jason Wong: "Re: [PHP-DB] Easy reg expression problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am trying to work out how to isolate the bit after and including the @ in
an email address using php. I would be grateful if someone could point me
to the expression.
$email="me <email protected>";
ereg("([a-zA-Z0-9])@([a-zA-Z0-9]).([a-zA-Z0-9]))", $email, $regs);
print("@".$regs[1].$regs[2].$regs[3]);
prints @
What am I doing/need to do?
Thanks,
John
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Miles Thompson: "Re: [PHP-DB] Re: Restrict account access to single user"
- Previous message: Damien Babilon: "[PHP-DB] execut MS SQL stored proc"
- In reply to: Tim Van Wassenhove: "Re: [PHP-DB] Table locking"
- Next in thread: Justin Patrin: "Re: [PHP-DB] Easy reg expression problem"
- Reply: Justin Patrin: "Re: [PHP-DB] Easy reg expression problem"
- Reply: Jason Wong: "Re: [PHP-DB] Easy reg expression problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

