.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Regular Expression in ASP.Net

Posted By: Suderson Sarathy     Posted Date: December 13, 2010    Points:2   Category :ASP.Net
I want to give the regular expression for the below.

In regular Expression validator

The password should contain at least eight characters and it can have both uppercase and lowercase letters. It should contain at least one number or special character (space, punctuation mark, etc.)

Thanks in Advance

Responses
Author: Suderson Sarathy             
Posted Date: December 13, 2010     Points: 5   

The answer for the above is:

(?=^.{8,15}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[a-zA-Z]).*$



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend