Haseeb -- ...and then Haseeb Iqbal said... % % thanx to all those who replied to my previous question.
Happy to help!
% 1 more question.i need help with reqular expressions.i want to check valid
% (email)
% usernanes for my mail server .i.e. Qmail. any help welcome.
It's come up before, so the first place to look is the archives. It's
pretty easy to check for a legally formatted mail address; it's a bit
trickier to check for a valid right hand side; it's impossible to check
for a valid left hand side unless it's your own machine.
Basically, and from the top of my head, an email address is
a letter or number
any number of letters, numbers, underscores, dashes, plusses, periods
an @
either
a letter
any number of letters and numbers, perhaps separated by periods
a period
a TLD (currently 2, 3, or 4 letters)
or
an IP address
and so it gets a little hairy to write but it can be done.
You might also do a quick google search for something like
email address regular expression check
to see if someone has worked out a good and complete one.
% thanx in advance
% Haseeb
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature

