The following expression appears to be much closer to what's required.

(?=.*[A-Z].*[A-Z])(?=.*[a-z].*[a-z])(?=.*\d.*\d)([EMAIL PROTECTED]'^_=:;[EMAIL 
PROTECTED]
'^_=:;*-.])[EMAIL PROTECTED]'^=:;*-.]{10,25}$

However, it also appears that the differences in the various regex
implementations are an issue. I'm working with asp.net. I'm attempting to
use a client side regex validator and also need server side validation.
The server side validation can be covered using the expression above;
browser validation is still a problem.

The expression functions as expected using the asp.net RegEx library on
the server. However, when I test it using the asp.net client-side
RegularExpression validation control (which emits browser JavaScript) or
from a JavaScript RegEx tester,

e.g. http://www.regular-expressions.info/javascriptexample.html

there are no matches when there should be.

Any ideas on how to work-around the differences with what appears to be
differences between JavaScript RegEx and the
System.Text.RegularExpression.RegEx class?

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to