Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 Regex emailadress is wrong
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

KinNeko
Starting Member

1 Posts

Posted - 17 July 2002 :  06:43:51  Show Profile
There might be a mistake in the Regex (if you use regex :) for emailadress detecting.
I dont know the code but i can give you an Example :

test@test <-- detected as Email..but has no '.'
test@test.de <-- detected correctly



Edited by - KinNeko on 17 July 2002 19:07:05

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 July 2002 :  05:59:03  Show Profile
changing line #78 of inc_functions.asp from this:

if (Instr(strArray(counter), "@") > 0) and not(Instr(strArray(counter), "mailto:") > 0) and not(Instr(UCase(strArray(counter)), "[URL") > 0) then


to this:

if (Instr(strArray(counter), "@") > 0 and Instr(strArray(counter), ".") > 0) and not(Instr(strArray(counter), "mailto:") > 0) and not(Instr(UCase(strArray(counter)), "[URL") > 0) then
should help that.

of course someone could use something like this and it would still translate as an e-mail address:

te.st@test
Go to Top of Page

Grandmaster
Starting Member

Brazil
46 Posts

Posted - 30 July 2002 :  20:14:48  Show Profile  Visit Grandmaster's Homepage  Send Grandmaster an ICQ Message
Isn't it better to find where @ is and then look for a "." after @? I think it's the best way to try to find if a text is an e-mail.



Edited by - Grandmaster on 31 July 2002 13:18:35
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07