From: Shot - Piotr Szotkowski Date: 2006-01-06T21:01:05+09:00 Subject: Re: Email Address Regex Hello. Jacob Fugal: > Be careful with email validation via regex, it's harder than you might > think[1][2]: > > /^([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|"([\x00-\x0C\x0E-\x21\x23-\x5B\x5D > -\x7F]|\\[\x00-\x7F])*")(\.([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|"([\x00-\ > x0C\x0E-\x21\x23-\x5B\x5D-\x7F]|\\[\x00-\x7F])*"))*@([a-zA-Z0-9&_?\/`! > |#*$^%=~{}+'-]+|\[([\x00-\x0C\x0E-\x5A\x5E-\x7F]|\\[\x00-\x7F])*\])(\. > ([a-zA-Z0-9&_?\/`!|#*$^%=~{}+'-]+|\[([\x00-\x0C\x0E-\x5A\x5E-\x7F]|\\[ > \x00-\x7F])*\]))*$/ It does match " spaces! @s! \"escaped quotes!\" "@shot.pl and it's the first one doing this that I know of, kudos! Unfortunately, it does not match 'international' domains, so it wouldn't pass addresses in the domain of, say, g�eg���ka.pl Cheers, -- Shot -- Like the ski resort of girls looking for husbands and husbands looking for girls, the situation is not as symmetrical as it might seem. ====================== http://shot.pl/hovercraft/ === http://shot.pl/1/125/ ===