This regular expression would work pretty good. I can build it into a function if you are unfamiliar with regexp.
As for making sure the mailbox and the domain aren't the same, I think writing a thing in asp would be the easiest.
You could do something like:
Code:<% Function SameMail_Domain(strAddress) Dim aryMail aryMail=Split(strAddress, "@") If aryMail(0)=Mid(aryMail(1),1,InstrRev(aryMail(1),".")-1) Then SameMail_Domain=True Else SameMail_Domain=False End If End Function %> <% If SameMail_Domain("firstname.lastname@example.org") Then %> <p>The e-mail is the same!</p> <% End If %>
I think this is Whammys stuff, but it really shows off regular expressions really well.
(This is whammys stuff, I only post it as a matter of reference)
Whats the point of a signature?
Thankyou both for the information, I am sure wammy wont mind very helpfull for sure!