I'm trying to qualify email addresses. Is there any reason why the following
line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes through....
<%=Left(Session("em"),4)%> does reflect "www."
why?
thanks! 18 1551
<%
If InStrRev(SomeEmail, "www.") Or Not InstrRev(SomeEmail, "@") Then
Response.Write "Invalid E-mail"
Response.End
Else
Response.Write "Valid E-mail (well.... valid'ish)"
Response.End
End If
%>
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message
news:OZ**************@TK2MSFTNGP12.phx.gbl... I'm trying to qualify email addresses. Is there any reason why the
following line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes
through.... <%=Left(Session("em"),4)%> does reflect "www." why?
thanks!
Not that this answers your question, but ww**********@aol.com is not an
invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message
news:OZ**************@TK2MSFTNGP12.phx.gbl... I'm trying to qualify email addresses. Is there any reason why the
following line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes
through.... <%=Left(Session("em"),4)%> does reflect "www." why?
thanks!
I agree that it is not 'invalid', but I have never run across anyone that
would use www. as a leader for their address on purpose. But I have received
a bunch that did it by mistake.... Of course they were AOL'rs.
thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:O6**************@TK2MSFTNGP10.phx.gbl... Not that this answers your question, but ww**********@aol.com is not an invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:OZ**************@TK2MSFTNGP12.phx.gbl... I'm trying to qualify email addresses. Is there any reason why the following line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes through.... <%=Left(Session("em"),4)%> does reflect "www." why?
thanks!
Any time that I have to give an e-mail address at a site, I use the domain
name as my e-mail address, so that when I start receiving spam at an
address, I know who to add to my vendetta list. For example, if I have to
give my e-mail address to espn.com for some reason, I give an e-mail address
of espn@[mydomain].com. Now, I will typically not use the www or the .com,
but I'm just me.
But, regardless, I think that by validating against www., 99% of the people
putting in www will be doing so by error. So, I agree with what you're
doing. :]
Ray at home
"shank" <sh***@tampabay.rr.com> wrote in message
news:#2**************@TK2MSFTNGP10.phx.gbl... I agree that it is not 'invalid', but I have never run across anyone that would use www. as a leader for their address on purpose. But I have
received a bunch that did it by mistake.... Of course they were AOL'rs. thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl... Not that this answers your question, but ww**********@aol.com is not an invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:OZ**************@TK2MSFTNGP12.phx.gbl... I'm trying to qualify email addresses. Is there any reason why the following line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes through.... <%=Left(Session("em"),4)%> does reflect "www." why?
thanks!
> Any time that I have to give an e-mail address at a site, I use the domain name as my e-mail address
I'm the same........ makes it much easier to find out who to start shouting
at too, hehe ;o)
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Ray at <%=sLocation%> [MVP] <Too many private support requests - Ask for it
if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... Any time that I have to give an e-mail address at a site, I use the domain name as my e-mail address, so that when I start receiving spam at an address, I know who to add to my vendetta list. For example, if I have to give my e-mail address to espn.com for some reason, I give an e-mail
address of espn@[mydomain].com. Now, I will typically not use the www or the
..com, but I'm just me.
But, regardless, I think that by validating against www., 99% of the
people putting in www will be doing so by error. So, I agree with what you're doing. :]
Ray at home
"shank" <sh***@tampabay.rr.com> wrote in message news:#2**************@TK2MSFTNGP10.phx.gbl... I agree that it is not 'invalid', but I have never run across anyone
that would use www. as a leader for their address on purpose. But I have received a bunch that did it by mistake.... Of course they were AOL'rs. thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl... Not that this answers your question, but ww**********@aol.com is not
an invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:OZ**************@TK2MSFTNGP12.phx.gbl... > I'm trying to qualify email addresses. Is there any reason why the following > line would not catch an email address beginning with "www." ? > > ElseIf Left(Session("em"),4) = "www." Then > > I put in a dummy email address: ww**********@aol.com and it goes through.... > <%=Left(Session("em"),4)%> does reflect "www." > why? > > thanks! > >
The spam is insane! I used to only have a vendetta list in a text file, but
I have since had to port all the data to a DB/2 database that spans 99 hard
drives. ;]
Ray at home
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:uZ**************@TK2MSFTNGP12.phx.gbl... Any time that I have to give an e-mail address at a site, I use the
domain name as my e-mail address I'm the same........ makes it much easier to find out who to start
shouting at too, hehe ;o)
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
hehe, my vendeta list seems to mainly comprise of aol, hotmail, yahoo,
optonline address's atm. Was a whole whord of others until I cleared it out
last month (was over 7.5 million address's in it..... added over a 5yr time
period (spanned 106 xls file's (one for each domain)))
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Ray at <%=sLocation%> [MVP] <Too many private support requests - Ask for it
if needed> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl... The spam is insane! I used to only have a vendetta list in a text file,
but I have since had to port all the data to a DB/2 database that spans 99
hard drives. ;]
Ray at home
"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message news:uZ**************@TK2MSFTNGP12.phx.gbl... Any time that I have to give an e-mail address at a site, I use the domain name as my e-mail address
I'm the same........ makes it much easier to find out who to start
shouting at too, hehe ;o)
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
That would work if you were an admin and catching all emails to
[mydomain].com, but the average Joe out there just has jo*@aol.com. I am
trying to get users to enter their email addresses for the sake of orders
and email campaigns. These are folks that 'want' our emails. Too many of
them just don't know their email address. We get heated emails flaming us
because they registered and have not gotten our emails. In the end, they
misspelled their addresses. It happens everyday for sure!
:-))
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for
it if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... Any time that I have to give an e-mail address at a site, I use the domain name as my e-mail address, so that when I start receiving spam at an address, I know who to add to my vendetta list. For example, if I have to give my e-mail address to espn.com for some reason, I give an e-mail
address of espn@[mydomain].com. Now, I will typically not use the www or the
..com, but I'm just me.
But, regardless, I think that by validating against www., 99% of the
people putting in www will be doing so by error. So, I agree with what you're doing. :]
Ray at home
"shank" <sh***@tampabay.rr.com> wrote in message news:#2**************@TK2MSFTNGP10.phx.gbl... I agree that it is not 'invalid', but I have never run across anyone
that would use www. as a leader for their address on purpose. But I have received a bunch that did it by mistake.... Of course they were AOL'rs. thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl... Not that this answers your question, but ww**********@aol.com is not
an invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:OZ**************@TK2MSFTNGP12.phx.gbl... > I'm trying to qualify email addresses. Is there any reason why the following > line would not catch an email address beginning with "www." ? > > ElseIf Left(Session("em"),4) = "www." Then > > I put in a dummy email address: ww**********@aol.com and it goes through.... > <%=Left(Session("em"),4)%> does reflect "www." > why? > > thanks! > >
Here's some code I use to check e-mails..........
<%
'// Point TheEmail to whatever you want to check
TheEmail = "me@err.abc"
'// Process it
If CheckMail(TheEmail) = False Then 'Invalid
Response.Write "Your e-mail address contains invalid characters"
Response.End
Else 'Not invalid
Response.Write "Your e-mail address does NOT contain invalid
characters"
Response.End
End If
'// Check it
Function CheckMail(strEmail)
Dim objRegExp , AmIValid
Set objRegExp = New RegExp
'// All on one line
objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9
\-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$"
'// End all on one line
AmIValid = objRegExp.Test(strEmail)
If not AmIValid Then
CheckMail = False
Else
CheckMail = True
End If
End Function
%>
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message
news:gS*********************@twister.tampabay.rr.c om... That would work if you were an admin and catching all emails to [mydomain].com, but the average Joe out there just has jo*@aol.com. I am trying to get users to enter their email addresses for the sake of orders and email campaigns. These are folks that 'want' our emails. Too many of them just don't know their email address. We get heated emails flaming us because they registered and have not gotten our emails. In the end, they misspelled their addresses. It happens everyday for sure! :-))
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for it if needed> wrote in message
news:OL**************@tk2msftngp13.phx.gbl... Any time that I have to give an e-mail address at a site, I use the
domain name as my e-mail address, so that when I start receiving spam at an address, I know who to add to my vendetta list. For example, if I have
to give my e-mail address to espn.com for some reason, I give an e-mail address of espn@[mydomain].com. Now, I will typically not use the www or the .com, but I'm just me.
But, regardless, I think that by validating against www., 99% of the people putting in www will be doing so by error. So, I agree with what you're doing. :]
Ray at home
"shank" <sh***@tampabay.rr.com> wrote in message news:#2**************@TK2MSFTNGP10.phx.gbl... I agree that it is not 'invalid', but I have never run across anyone that would use www. as a leader for their address on purpose. But I have
received a bunch that did it by mistake.... Of course they were AOL'rs. thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl... > Not that this answers your question, but ww**********@aol.com is not an > invalid e-mail address. > > Ray at work > > "shank" <sh***@tampabay.rr.com> wrote in message > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > I'm trying to qualify email addresses. Is there any reason why the > following > > line would not catch an email address beginning with "www." ? > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > I put in a dummy email address: ww**********@aol.com and it goes > through.... > > <%=Left(Session("em"),4)%> does reflect "www." > > why? > > > > thanks! > > > > > >
Steven Burn wrote: Here's some code I use to check e-mails..........
<snip> objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$"
You will need to make a small update.
For some time now, the top level domain "museum" has been in use. so*****@louvre.museum will be mercilessly rejected by your code, although
the address is valid.
--
Jos
hehe woops.......I wasn't aware of that one :o\
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Jos <jo***************@fastmail.fm> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl... Steven Burn wrote: Here's some code I use to check e-mails.......... <snip> objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$"
You will need to make a small update.
For some time now, the top level domain "museum" has been in use.
so*****@louvre.museum will be mercilessly rejected by your code, although the address is valid.
--
Jos
Perfect example of AOL'rs not knowing their email address...
this was submitted this morning... HTTP://WW**********@AOL.COM
(I slipped in the xxxx)
"shank" <sh***@tampabay.rr.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... I agree that it is not 'invalid', but I have never run across anyone that would use www. as a leader for their address on purpose. But I have
received a bunch that did it by mistake.... Of course they were AOL'rs. thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl... Not that this answers your question, but ww**********@aol.com is not an invalid e-mail address.
Ray at work
"shank" <sh***@tampabay.rr.com> wrote in message news:OZ**************@TK2MSFTNGP12.phx.gbl... I'm trying to qualify email addresses. Is there any reason why the following line would not catch an email address beginning with "www." ?
ElseIf Left(Session("em"),4) = "www." Then
I put in a dummy email address: ww**********@aol.com and it goes through.... <%=Left(Session("em"),4)%> does reflect "www." why?
thanks!
Hi Steven,
I got an error in line 25:
Set objRegExp = New RegExp
Should I install or hability this component??
I read the help sometimes but I could not understand RegExp !!
Thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem
news:#F**************@TK2MSFTNGP11.phx.gbl... Here's some code I use to check e-mails..........
<% '// Point TheEmail to whatever you want to check TheEmail = "me@err.abc"
'// Process it If CheckMail(TheEmail) = False Then 'Invalid Response.Write "Your e-mail address contains invalid characters" Response.End Else 'Not invalid Response.Write "Your e-mail address does NOT contain invalid characters" Response.End End If
'// Check it Function CheckMail(strEmail) Dim objRegExp , AmIValid Set objRegExp = New RegExp '// All on one line objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" '// End all on one line AmIValid = objRegExp.Test(strEmail) If not AmIValid Then CheckMail = False Else CheckMail = True End If End Function
%> -- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message news:gS*********************@twister.tampabay.rr.c om... That would work if you were an admin and catching all emails to [mydomain].com, but the average Joe out there just has jo*@aol.com. I am trying to get users to enter their email addresses for the sake of
orders and email campaigns. These are folks that 'want' our emails. Too many of them just don't know their email address. We get heated emails flaming
us because they registered and have not gotten our emails. In the end, they misspelled their addresses. It happens everyday for sure! :-))
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask
for it if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... Any time that I have to give an e-mail address at a site, I use the domain name as my e-mail address, so that when I start receiving spam at an address, I know who to add to my vendetta list. For example, if I
have to give my e-mail address to espn.com for some reason, I give an e-mail address of espn@[mydomain].com. Now, I will typically not use the www or the .com, but I'm just me.
But, regardless, I think that by validating against www., 99% of the people putting in www will be doing so by error. So, I agree with what
you're doing. :]
Ray at home
"shank" <sh***@tampabay.rr.com> wrote in message news:#2**************@TK2MSFTNGP10.phx.gbl... > I agree that it is not 'invalid', but I have never run across anyone
that > would use www. as a leader for their address on purpose. But I have received > a bunch that did it by mistake.... Of course they were AOL'rs. > thanks > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote
in > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > Not that this answers your question, but ww**********@aol.com is
not an > > invalid e-mail address. > > > > Ray at work > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > I'm trying to qualify email addresses. Is there any reason why
the > > following > > > line would not catch an email address beginning with "www." ? > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > I put in a dummy email address: ww**********@aol.com and it goes > > through.... > > > <%=Left(Session("em"),4)%> does reflect "www." > > > why? > > > > > > thanks! > > > > > > > > > > > >
http://www.brettb.com/VBScriptRegularExpressions.asp
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message
news:#E**************@TK2MSFTNGP10.phx.gbl... Hi Steven, I got an error in line 25: Set objRegExp = New RegExp Should I install or hability this component?? I read the help sometimes but I could not understand RegExp !!
Thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:#F**************@TK2MSFTNGP11.phx.gbl... Here's some code I use to check e-mails..........
<% '// Point TheEmail to whatever you want to check TheEmail = "me@err.abc"
'// Process it If CheckMail(TheEmail) = False Then 'Invalid Response.Write "Your e-mail address contains invalid characters" Response.End Else 'Not invalid Response.Write "Your e-mail address does NOT contain invalid characters" Response.End End If
'// Check it Function CheckMail(strEmail) Dim objRegExp , AmIValid Set objRegExp = New RegExp '// All on one line objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" '// End all on one line AmIValid = objRegExp.Test(strEmail) If not AmIValid Then CheckMail = False Else CheckMail = True End If End Function
%> -- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message news:gS*********************@twister.tampabay.rr.c om... That would work if you were an admin and catching all emails to [mydomain].com, but the average Joe out there just has jo*@aol.com. I
am trying to get users to enter their email addresses for the sake of orders and email campaigns. These are folks that 'want' our emails. Too many
of them just don't know their email address. We get heated emails flaming us because they registered and have not gotten our emails. In the end,
they misspelled their addresses. It happens everyday for sure! :-))
"Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for it if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... > Any time that I have to give an e-mail address at a site, I use the domain > name as my e-mail address, so that when I start receiving spam at an > address, I know who to add to my vendetta list. For example, if I have to > give my e-mail address to espn.com for some reason, I give an e-mail address > of espn@[mydomain].com. Now, I will typically not use the www or
the .com, > but I'm just me. > > But, regardless, I think that by validating against www., 99% of the people > putting in www will be doing so by error. So, I agree with what you're > doing. :] > > Ray at home > > "shank" <sh***@tampabay.rr.com> wrote in message > news:#2**************@TK2MSFTNGP10.phx.gbl... > > I agree that it is not 'invalid', but I have never run across
anyone that > > would use www. as a leader for their address on purpose. But I
have > received > > a bunch that did it by mistake.... Of course they were AOL'rs. > > thanks > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com>
wrote in > > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > > Not that this answers your question, but ww**********@aol.com is not an > > > invalid e-mail address. > > > > > > Ray at work > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > > I'm trying to qualify email addresses. Is there any reason why the > > > following > > > > line would not catch an email address beginning with "www." ? > > > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > > > I put in a dummy email address: ww**********@aol.com and it
goes > > > through.... > > > > <%=Left(Session("em"),4)%> does reflect "www." > > > > why? > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > >
Forgot to say, if you've not got it, then yes, you'll need to install it.
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Steven Burn <nobody@PVT_it-mate.co.uk> wrote in message
news:uW*************@TK2MSFTNGP11.phx.gbl... http://www.brettb.com/VBScriptRegularExpressions.asp
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message news:#E**************@TK2MSFTNGP10.phx.gbl... Hi Steven, I got an error in line 25: Set objRegExp = New RegExp Should I install or hability this component?? I read the help sometimes but I could not understand RegExp !!
Thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:#F**************@TK2MSFTNGP11.phx.gbl... Here's some code I use to check e-mails..........
<% '// Point TheEmail to whatever you want to check TheEmail = "me@err.abc"
'// Process it If CheckMail(TheEmail) = False Then 'Invalid Response.Write "Your e-mail address contains invalid
characters" Response.End Else 'Not invalid Response.Write "Your e-mail address does NOT contain invalid characters" Response.End End If
'// Check it Function CheckMail(strEmail) Dim objRegExp , AmIValid Set objRegExp = New RegExp '// All on one line objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" '// End all on one line AmIValid = objRegExp.Test(strEmail) If not AmIValid Then CheckMail = False Else CheckMail = True End If End Function
%> -- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message news:gS*********************@twister.tampabay.rr.c om... > That would work if you were an admin and catching all emails to > [mydomain].com, but the average Joe out there just has jo*@aol.com.
I am > trying to get users to enter their email addresses for the sake of orders > and email campaigns. These are folks that 'want' our emails. Too
many of > them just don't know their email address. We get heated emails
flaming us > because they registered and have not gotten our emails. In the end, they > misspelled their addresses. It happens everyday for sure! > :-)) > > "Ray at <%=sLocation%> [MVP]" <Too many private support requests -
Ask for > it if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... > > Any time that I have to give an e-mail address at a site, I use
the domain > > name as my e-mail address, so that when I start receiving spam at
an > > address, I know who to add to my vendetta list. For example, if I have to > > give my e-mail address to espn.com for some reason, I give an
e-mail > address > > of espn@[mydomain].com. Now, I will typically not use the www or
the > .com, > > but I'm just me. > > > > But, regardless, I think that by validating against www., 99% of
the > people > > putting in www will be doing so by error. So, I agree with what
you're > > doing. :] > > > > Ray at home > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > news:#2**************@TK2MSFTNGP10.phx.gbl... > > > I agree that it is not 'invalid', but I have never run across anyone > that > > > would use www. as a leader for their address on purpose. But I have > > received > > > a bunch that did it by mistake.... Of course they were AOL'rs. > > > thanks > > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in > > > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > > > Not that this answers your question, but ww**********@aol.com
is not > an > > > > invalid e-mail address. > > > > > > > > Ray at work > > > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > > > I'm trying to qualify email addresses. Is there any reason
why the > > > > following > > > > > line would not catch an email address beginning with "www."
? > > > > > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > > > > > I put in a dummy email address: ww**********@aol.com and it goes > > > > through.... > > > > > <%=Left(Session("em"),4)%> does reflect "www." > > > > > why? > > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Hi, I read the help in the url passed, but I saw that I have the version of
IE compatible and still thus it is not running
Set objRegExp = New RegExp
so, what is the problem ??
thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem
news:uW*************@TK2MSFTNGP11.phx.gbl... http://www.brettb.com/VBScriptRegularExpressions.asp
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message news:#E**************@TK2MSFTNGP10.phx.gbl... Hi Steven, I got an error in line 25: Set objRegExp = New RegExp Should I install or hability this component?? I read the help sometimes but I could not understand RegExp !!
Thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:#F**************@TK2MSFTNGP11.phx.gbl... Here's some code I use to check e-mails..........
<% '// Point TheEmail to whatever you want to check TheEmail = "me@err.abc"
'// Process it If CheckMail(TheEmail) = False Then 'Invalid Response.Write "Your e-mail address contains invalid
characters" Response.End Else 'Not invalid Response.Write "Your e-mail address does NOT contain invalid characters" Response.End End If
'// Check it Function CheckMail(strEmail) Dim objRegExp , AmIValid Set objRegExp = New RegExp '// All on one line objRegExp.Pattern =
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" '// End all on one line AmIValid = objRegExp.Test(strEmail) If not AmIValid Then CheckMail = False Else CheckMail = True End If End Function
%> -- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
shank <sh***@tampabay.rr.com> wrote in message news:gS*********************@twister.tampabay.rr.c om... > That would work if you were an admin and catching all emails to > [mydomain].com, but the average Joe out there just has jo*@aol.com.
I am > trying to get users to enter their email addresses for the sake of orders > and email campaigns. These are folks that 'want' our emails. Too
many of > them just don't know their email address. We get heated emails
flaming us > because they registered and have not gotten our emails. In the end, they > misspelled their addresses. It happens everyday for sure! > :-)) > > "Ray at <%=sLocation%> [MVP]" <Too many private support requests -
Ask for > it if needed> wrote in message news:OL**************@tk2msftngp13.phx.gbl... > > Any time that I have to give an e-mail address at a site, I use
the domain > > name as my e-mail address, so that when I start receiving spam at
an > > address, I know who to add to my vendetta list. For example, if I have to > > give my e-mail address to espn.com for some reason, I give an
e-mail > address > > of espn@[mydomain].com. Now, I will typically not use the www or
the > .com, > > but I'm just me. > > > > But, regardless, I think that by validating against www., 99% of
the > people > > putting in www will be doing so by error. So, I agree with what
you're > > doing. :] > > > > Ray at home > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > news:#2**************@TK2MSFTNGP10.phx.gbl... > > > I agree that it is not 'invalid', but I have never run across anyone > that > > > would use www. as a leader for their address on purpose. But I have > > received > > > a bunch that did it by mistake.... Of course they were AOL'rs. > > > thanks > > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in > > > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > > > Not that this answers your question, but ww**********@aol.com
is not > an > > > > invalid e-mail address. > > > > > > > > Ray at work > > > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > > > I'm trying to qualify email addresses. Is there any reason
why the > > > > following > > > > > line would not catch an email address beginning with "www."
? > > > > > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > > > > > I put in a dummy email address: ww**********@aol.com and it goes > > > > through.... > > > > > <%=Left(Session("em"),4)%> does reflect "www." > > > > > why? > > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Do you have VBScrpt version 5.0? http://msdn.microsoft.com/library/de...us/dnclinic/ht
ml/scripting051099.asp http://msdn.microsoft.com/library/de....asp?contentid
=28001169
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl... Hi, I read the help in the url passed, but I saw that I have the version
of IE compatible and still thus it is not running Set objRegExp = New RegExp
so, what is the problem ?? thanks, --
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:uW*************@TK2MSFTNGP11.phx.gbl... http://www.brettb.com/VBScriptRegularExpressions.asp
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message news:#E**************@TK2MSFTNGP10.phx.gbl... Hi Steven, I got an error in line 25: Set objRegExp = New RegExp Should I install or hability this component?? I read the help sometimes but I could not understand RegExp !!
Thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:#F**************@TK2MSFTNGP11.phx.gbl... > Here's some code I use to check e-mails.......... > > <% > '// Point TheEmail to whatever you want to check > TheEmail = "me@err.abc" > > '// Process it > If CheckMail(TheEmail) = False Then 'Invalid > Response.Write "Your e-mail address contains invalid characters" > Response.End > Else 'Not invalid > Response.Write "Your e-mail address does NOT contain invalid > characters" > Response.End > End If > > '// Check it > Function CheckMail(strEmail) > Dim objRegExp , AmIValid > Set objRegExp = New RegExp > '// All on one line > objRegExp.Pattern = >
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 > \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" > '// End all on one line > AmIValid = objRegExp.Test(strEmail) > If not AmIValid Then > CheckMail = False > Else > CheckMail = True > End If > End Function > > %> > -- > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > Disclaimer: > I know I'm probably wrong, I just like taking part ;o) > > > shank <sh***@tampabay.rr.com> wrote in message > news:gS*********************@twister.tampabay.rr.c om... > > That would work if you were an admin and catching all emails to > > [mydomain].com, but the average Joe out there just has
jo*@aol.com. I am > > trying to get users to enter their email addresses for the sake of orders > > and email campaigns. These are folks that 'want' our emails. Too many of > > them just don't know their email address. We get heated emails flaming us > > because they registered and have not gotten our emails. In the
end, they > > misspelled their addresses. It happens everyday for sure! > > :-)) > > > > "Ray at <%=sLocation%> [MVP]" <Too many private support requests - Ask for > > it if needed> wrote in message > news:OL**************@tk2msftngp13.phx.gbl... > > > Any time that I have to give an e-mail address at a site, I use the > domain > > > name as my e-mail address, so that when I start receiving spam
at an > > > address, I know who to add to my vendetta list. For example, if
I have > to > > > give my e-mail address to espn.com for some reason, I give an e-mail > > address > > > of espn@[mydomain].com. Now, I will typically not use the www
or the > > .com, > > > but I'm just me. > > > > > > But, regardless, I think that by validating against www., 99% of the > > people > > > putting in www will be doing so by error. So, I agree with what you're > > > doing. :] > > > > > > Ray at home > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > news:#2**************@TK2MSFTNGP10.phx.gbl... > > > > I agree that it is not 'invalid', but I have never run across anyone > > that > > > > would use www. as a leader for their address on purpose. But I have > > > received > > > > a bunch that did it by mistake.... Of course they were AOL'rs. > > > > thanks > > > > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in > > > > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > > > > Not that this answers your question, but ww**********@aol.com is not > > an > > > > > invalid e-mail address. > > > > > > > > > > Ray at work > > > > > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > > > > I'm trying to qualify email addresses. Is there any reason why the > > > > > following > > > > > > line would not catch an email address beginning with
"www." ? > > > > > > > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > > > > > > > I put in a dummy email address: ww**********@aol.com and
it goes > > > > > through.... > > > > > > <%=Left(Session("em"),4)%> does reflect "www." > > > > > > why? > > > > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Hi, I use version 5.6 ; is not run on this version?
thanks,
--
Sem mais,
««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem
news:#z**************@TK2MSFTNGP10.phx.gbl... Do you have VBScrpt version 5.0?
http://msdn.microsoft.com/library/de...us/dnclinic/ht ml/scripting051099.asp
http://msdn.microsoft.com/library/de....asp?contentid =28001169
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl... Hi, I read the help in the url passed, but I saw that I have the version of IE compatible and still thus it is not running Set objRegExp = New RegExp
so, what is the problem ?? thanks, --
Sem mais,
««««««««»»»»»»»»»»»»»» Vlmar Brazão de Oliveira Desenvolvimento Web HI-TEC "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem news:uW*************@TK2MSFTNGP11.phx.gbl... http://www.brettb.com/VBScriptRegularExpressions.asp
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
Vilmar Brazão de Oliveira <te***@teste.teste.teste> wrote in message news:#E**************@TK2MSFTNGP10.phx.gbl... > Hi Steven, > I got an error in line 25: > Set objRegExp = New RegExp > Should I install or hability this component?? > I read the help sometimes but I could not understand RegExp !! > > Thanks, > > -- > > Sem mais, > > ««««««««»»»»»»»»»»»»»» > Vlmar Brazão de Oliveira > Desenvolvimento Web > HI-TEC > "Steven Burn" <nobody@PVT_it-mate.co.uk> escreveu na mensagem > news:#F**************@TK2MSFTNGP11.phx.gbl... > > Here's some code I use to check e-mails.......... > > > > <% > > '// Point TheEmail to whatever you want to check > > TheEmail = "me@err.abc" > > > > '// Process it > > If CheckMail(TheEmail) = False Then 'Invalid > > Response.Write "Your e-mail address contains invalid characters" > > Response.End > > Else 'Not invalid > > Response.Write "Your e-mail address does NOT contain
invalid > > characters" > > Response.End > > End If > > > > '// Check it > > Function CheckMail(strEmail) > > Dim objRegExp , AmIValid > > Set objRegExp = New RegExp > > '// All on one line > > objRegExp.Pattern = > > >
"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9 > > \-]+\.)+))([a-zA-Z] {2,4}|[0-9]{1,3})(\]?)$" > > '// End all on one line > > AmIValid = objRegExp.Test(strEmail) > > If not AmIValid Then > > CheckMail = False > > Else > > CheckMail = True > > End If > > End Function > > > > %> > > -- > > Regards > > > > Steven Burn > > Ur I.T. Mate Group > > www.it-mate.co.uk > > > > Keeping it FREE! > > > > Disclaimer: > > I know I'm probably wrong, I just like taking part ;o) > > > > > > shank <sh***@tampabay.rr.com> wrote in message > > news:gS*********************@twister.tampabay.rr.c om... > > > That would work if you were an admin and catching all emails to > > > [mydomain].com, but the average Joe out there just has jo*@aol.com. I am > > > trying to get users to enter their email addresses for the sake
of > orders > > > and email campaigns. These are folks that 'want' our emails. Too many of > > > them just don't know their email address. We get heated emails flaming > us > > > because they registered and have not gotten our emails. In the end, they > > > misspelled their addresses. It happens everyday for sure! > > > :-)) > > > > > > "Ray at <%=sLocation%> [MVP]" <Too many private support
requests - Ask > for > > > it if needed> wrote in message > > news:OL**************@tk2msftngp13.phx.gbl... > > > > Any time that I have to give an e-mail address at a site, I
use the > > domain > > > > name as my e-mail address, so that when I start receiving spam at an > > > > address, I know who to add to my vendetta list. For example,
if I > have > > to > > > > give my e-mail address to espn.com for some reason, I give an e-mail > > > address > > > > of espn@[mydomain].com. Now, I will typically not use the www or the > > > .com, > > > > but I'm just me. > > > > > > > > But, regardless, I think that by validating against www., 99%
of the > > > people > > > > putting in www will be doing so by error. So, I agree with
what > you're > > > > doing. :] > > > > > > > > Ray at home > > > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > > news:#2**************@TK2MSFTNGP10.phx.gbl... > > > > > I agree that it is not 'invalid', but I have never run
across anyone > > > that > > > > > would use www. as a leader for their address on purpose. But
I have > > > > received > > > > > a bunch that did it by mistake.... Of course they were
AOL'rs. > > > > > thanks > > > > > > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot
com> wrote > in > > > > > message news:O6**************@TK2MSFTNGP10.phx.gbl... > > > > > > Not that this answers your question, but
ww**********@aol.com is > not > > > an > > > > > > invalid e-mail address. > > > > > > > > > > > > Ray at work > > > > > > > > > > > > "shank" <sh***@tampabay.rr.com> wrote in message > > > > > > news:OZ**************@TK2MSFTNGP12.phx.gbl... > > > > > > > I'm trying to qualify email addresses. Is there any
reason why > the > > > > > > following > > > > > > > line would not catch an email address beginning with "www." ? > > > > > > > > > > > > > > ElseIf Left(Session("em"),4) = "www." Then > > > > > > > > > > > > > > I put in a dummy email address: ww**********@aol.com and it goes > > > > > > through.... > > > > > > > <%=Left(Session("em"),4)%> does reflect "www." > > > > > > > why? > > > > > > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ville Mattila |
last post by:
Hello readers,
I'm trying to install the latest PHP4 version from the scratch. The
configure string is following:
../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-curl...
|
by: - ions |
last post by:
I have created a JComboBox with its Items as a list of "M" numbers ie.
M1,M2,M3.......throgh too M110 (thes are the messier objects, a
catolouge of deep sky objects) the user selects of of these...
|
by: Tongu? Yumruk |
last post by:
I have a little proposal about type checking in python. I'll be glad
if you read and comment on it. Sorry for my bad english (I'm not a
native English speaker)
A Little Stricter Typing in Python...
|
by: Web Developer |
last post by:
Hi,
I come across the term "type checking" very often in my readings on C++, and
have never heard it in Java. Besides the simplistic answer that it checks
the "type", what more does it mean?
...
|
by: Qopit |
last post by:
Hi there,
I'm pretty new to Python and am trying to figure out how to get "will
this code compile?"-like code checking. To me this is a pretty basic
language/environment requirement, especially...
|
by: Patient Guy |
last post by:
Does anyone have any coding rules they follow when doing argument checking?
When arguments fail during check, do you return from the call with an
ambiguous return value, or do you throw...
|
by: lawrence k |
last post by:
I've made it habit to check all returns in my code, and usually, on
most projects, I'll have an error function that reports error messages
to some central location. I recently worked on a project...
|
by: jacob navia |
last post by:
We hear very often in this discussion group that
bounds checking, or safety tests are too expensive
to be used in C.
Several researchers of UCSD have published an interesting
paper about this...
|
by: polas |
last post by:
Afternoon everyone.
I have a quick question about standard C. Generally speaking, in my
experience, whenever one accesses an array there is never any bounds
checking done (either statically...
|
by: BillE |
last post by:
I have found articles on line about using word interop for spell checking
with visual studio applications.
Most of the articles are several years old, though - VS2003, maybe 2005. I
couldn't...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |