[thelist] regex for email addresses
Peter Barrett
Peter.Barrett at corel.com
Tue Oct 15 09:17:00 CDT 2002
The part at the end {2,3} is saying that you're allowing either 2 or 3
characters of the type in type in the []'s. If you want to have at least
2, but any number greater than two, characters, use {2,}.
ie. regEx.Pattern
="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,}$"
hth,
~pete
-----Original Message-----
From: davemiller at prispop.com [mailto:davemiller at prispop.com]
Sent: Monday, October 14, 2002 10:17 PM
To: thelist at lists.evolt.org
Subject: [thelist] regex for email addresses
I have an email address filter for the knuckleheads who don't like to
enter valid addresses to a mailing list.
Now, I'm not a big fan of filters because they need to be updated or
sometimes someone falls through the cracks. Like .name domains.
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!
regEx.Pattern ="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$"
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list