RE: [PHP] script question

From: Date: Tue, 17 Oct 2000 04:02:13 +0000
Subject: RE: [PHP] script question
Groups: php.general 
Request: Send a blank email to php-general+get-20513@lists.php.net to get a copy of this message
Gotcha ... you need this: explode(); it will create you an array... for example: $email = maxim@maxim.cx $email = explode('@', $email); //then: $before_at = $email[0]; // maxim $after_at = $email[1]; // maxim.cx there are no Regular Expressions to do, sorry for my previouse email, I though you needed to validate it not to explode().. Cheers! -----Original Message----- From: BrianSander [mailto:yoda@ipo.asu.edu] Sent: Saturday, September 23, 2000 6:52 AM To: php-general@lists.php.net Subject: [PHP] script question Greetings, I have a problem which will probably has a very simple solution, I'm relatively new to programming in general. I'm attempting to write a php script which will split an email address into its name and domain components. $email is passed from a webpage <?php $before_@ = (some regular expression)$email $after_@ = (some regular expression)$email ?> How would this be accomplished? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#20513) next »