RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Define Maximum length to a TextBox
Expression
^(.|\r|\n){1,10}$
Description
This expression can be use to define the maximum length to a textBox. U can change the maximum character by replacing the last numeric value that is 10 in my example. Just change this number to your desired number like ^(.|\r|\n){1,10}$ : for max 10 character ^(.|\r|\n){1,20}$ : for max 20 character
Matches
ChandanKum
Non-Matches
ChandanKuma
Author Rating: Not yet rated. Chandan Kumar
Source Chandan kumar
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: sandip
Name: sandip
Date: 10/19/2011 12:28:12 AM
Comment:
sdfsdf


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials