Regular Expression Help
We have a textbox on a web form (ASP.NET 2.0 - C#) that is for end-users to
enter e-mail address(es). The valid entries are:
firstname.lastname@example.org;email@example.com;name3@company. com (notice no space after
firstname.lastname@example.org; email@example.com; firstname.lastname@example.org (notice the space
after the semicolon)
Basically, the user can enter 1 e-mail address or more than 1 e-mail address
separated by a semicolon.
Can the RegularExpressionValidator control handle this situation?
If not, is there another way to validate this?
Re: Regular Expression Help
To avoid obfuscating the code, I would do this custom. As in split on
all the e-mail separators (most people allow for space, camma,
semicolor, and new line) and then regexp against each. If one fails,
they all fail.
|All times are GMT. The time now is 03:07 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.