Re: Getting part of a string

From: Date: Sun, 21 Jan 2001 03:50:18 +0000
Subject: Re: Getting part of a string
Groups: php.general 
Request: Send a blank email to php-general+get-35876@lists.php.net to get a copy of this message
In a message dated 21/01/2001 03:43:19 GMT Standard Time, mfischer@josefine.ben.tuwien.ac.at writes: << if( eregi( "^([^@]+)@([^@]+)$", $email, $match)) { $email_user = $match[1]; $email_domain = strtolower( $match[2]); echo "$email_user at $email_domain"; } else echo "bad email"; >> Thank you m. that works perfect! Ade

« previous php.general (#35876) next »