[AWS] email checking function
Pascal Obry
pascal at obry.net
Mon Jun 29 17:59:23 CEST 2015
Le lundi 29 juin 2015 à 15:23 +0100, tony gair a écrit :
> Is there a function somewhere in AWS that will validate a string as a
> valid email?
No, but it should be close to:
Pos_A : Natural := Strings.Fixed.Index (Email, "@");
Pos_P : Natural := Strings.Fixed.Index (Email, ".", From => Pos_A);
Pos_A in Email'First + 1 .. Email'Last - 2
and then
Pos_B in Pos_A + 1 .. Email'Last - 1
Plus checks for non supported characters.
Contribution welcomed :)
--
Pascal Obry / Magny Les Hameaux (78)
The best way to travel is by means of imagination
http://v2p.fr.eu.org
http://www.obry.net
gpg --keyserver keys.gnupg.net --recv-key F949BD3B
More information about the AWS
mailing list