Hope someone can help....
I have recently set up a log in thingy to my website as part of a project and on the join up form have used objRegExp in the validation for the user inputted e-mail address (a recomendation from one of you lovely lot!) and its working great! so thanks a lot!
border=0 onclick="AddSmileyIcon('smileys/smiley4.gif')" src="http://forums.webwiz.net/smileys/smiley4.gif" style="CURSOR: hand">
Only thing is, I need to write an alogorithm for this particular part of the coding and fully refine it. So, does anyone who completly understands the objRegExp thingy know how to write an algorithm for these few lines?
border=0 onclick="AddSmileyIcon('smileys/smiley5.gif')" src="http://forums.webwiz.net/smileys/smiley5.gif" style="CURSOR: hand">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CheckMail(Email)
Function CheckMail(Email)
Dim objRegExp , blnValid
Set objRegExp = New RegExp
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})(\]?)$"
blnValid = objRegExp.Test(Email)
If NOT blnValid THEN Response.Redirect "invalid.asp"
End Function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It may seem like a stupid question but I really don't wanna mess this up! The algorithm is worth a lot of marks and it needs to be perfect! My whole life depends on it! literally! i need to pass this subject to get into Uni!! lol!
So please help....I'm so grateful!!!!!!
Loadsa love and bubbles,
Vicky
border=0 onclick="AddSmileyIcon('smileys/smiley1.gif')" src="http://forums.webwiz.net/smileys/smiley1.gif" style="CURSOR: hand"> xxx