[thelist] regex for email addresses

Beau Hartshorne beau at members.evolt.org
Tue Oct 15 00:08:01 CDT 2002


regEx.Pattern ="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$"

See that last bit in the brackets? Try changing that to (2,4) from
(2,3).

The new pattern should be:

regEx.Pattern ="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,4}$"

Beau

> Here's the RegEx Pattern, I know nothing about RegEx but I'd like to
allow
> domains over 3 characters, does anyone know the fix?  (I'm using ASP
by the
> way)  Thanks!





More information about the thelist mailing list