Jump to content

Regex - Regular Expression Validator


davej

Recommended Posts

I am looking at this regex thing but I don't understand the issue of "lookahead/lookbehind." Can I exclude a list of patterns in ASP.NET 3.5 ? I am guessing that the regex thing will have to be followed by a function that will exclude my list of unwanted patterns.For example from...http://www.zorched.net/2009/05/08/password...ar-expressions/The password strength idea looks interesting but...^.*(?=.{6,15})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\!\@\#\$\%\^\&]).*$...still matches Password#1, which isn't such a great password... http://regexpal.com/Ref...http://msdn.microsoft.com/en-us/library/ms972966.aspxThanks.

Link to comment
Share on other sites

http://www.regular-expressions.info/lookaround.html for look around related information
Yes, I am looking around. I see now that my example allows whitespace so it is not valid for my intended use. It is difficult to find good examples of exclusions. I think that (?!pattern1|pattern2|pattern3) is the basis for exclusions but I can't seem to make it work.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...