davej Posted April 1, 2011 Share Posted April 1, 2011 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 More sharing options...
birbal Posted April 1, 2011 Share Posted April 1, 2011 http://reguler-expressions.info/tutorials/lookaround.html for look around related information Link to comment Share on other sites More sharing options...
davej Posted April 2, 2011 Author Share Posted April 2, 2011 http://www.regular-expressions.info/lookaround.html for look around related informationYes, 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.