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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$
Description
Password matching expression. Password must be at least 4 characters, no more than 8 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit.
Matches
asD1 | asDF1234 | ASPgo123
Non-Matches
asdf | 1234 | ASDF12345
Author Rating: The rating for this expression. Steven Smith
Source http://aspalliance.com/QuickStart/howto/doc/RegexCommon.aspx
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: Thanks
Name: swr
Date: 2/16/2020 4:34:34 AM
Comment:
Thanks Man v much


Title: Adjust the length
Name: Anubhab Ghosh
Date: 11/22/2016 10:30:31 AM
Comment:
Probably the most popularly used rule. Just increase the minimum length to 8-16 characters as: (?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16} or at least 8 characters as: (?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}


Title: Works very well
Name: Lisandro Duran
Date: 8/13/2015 11:09:13 AM
Comment:
Thank you!


Title: Carat/circumflex symbol
Name: Tzvi Gons
Date: 3/12/2014 5:24:43 PM
Comment:
1) I tried this syntax in PHP and there does not seem to be a difference weather I use the ^ or if I do not.


Title: The best laptop battery store for both high capacity long lasting replacements is SafeBatteries.com
Name: SafeBatteries.com
Date: 7/23/2013 10:03:21 AM
Comment:
If your looking for one of the best laptop batteries made then SafeBatteries.com is an online store to check out. They specialize in high capacity batteries that last longer than any other battery. Example: Our HP DV4 Battery is a 6 cell battery that rates at a massive 5800mAh 62Wh and will last around 700-800 charging cycles (3 years) http://www.safebatteries.com/hp-dv4-battery-black-5800mah.html All of our batteries use the same Advanced high performance cells and boast great capacity and service live


Title: The best laptop battery store for both high capacity long lasting replacements is SafeBatteries.com
Name: SafeBatteries.com
Date: 7/23/2013 10:03:09 AM
Comment:
If your looking for one of the best laptop batteries made then SafeBatteries.com is an online store to check out. They specialize in high capacity batteries that last longer than any other battery. Example: Our HP DV4 Battery is a 6 cell battery that rates at a massive 5800mAh 62Wh and will last around 700-800 charging cycles (3 years) http://www.safebatteries.com/hp-dv4-battery-black-5800mah.html All of our batteries use the same Advanced high performance cells and boast great capacity and service live


Title: Defrag regularly
Name: suming
Date: 3/29/2013 4:15:21 AM
Comment:
The faster your hard drive does its work – less demand you are going to put on the hard drive and your battery. Make your hard drive as efficient as possible by defragging it regularly. (but not while it’s on battery of course!) Mac OSX is better built to handle fragmentation so it may not be very applicable for Apple systems. http://www.akkus-adapter.com/hp-probook-4340s.html , akku HP ProBook 4340s http://www.akkus-adapter.com/hp-probook-4341s.html ,akku HP ProBook 4341s http://www.akkus-adapter.com/hp-probook-6475b.html , akku HP ProBook 6475b http://www.akkus-adapter.com/hp-probook-6470b.html , akku HP ProBook 6470b


Title: Close Unnecessary Programs
Name: suming
Date: 3/15/2013 2:08:13 AM
Comment:
Look at the programs that start up along with your operating system. If you don't have to use them immediately, right click on the icon and go into options. http://www.akkus-adapter.com/asus-g53s-series.html , akku ASUS G53S Series http://www.akkus-adapter.com/asus-g53j-series.html , ASUS G53J akku http://www.boabateria.com/samsung-np-p430.html , http://www.boabateria.com/samsung-p530.html , Bateria SAMSUNG P530 http://www.boabateria.com/samsung-np-p530.html , Bateria SAMSUNG NP-P530 http://www.akkus-adapter.com/asus-g73jh-x2.html , akku ASUS G73JH-X2 http://www.akkus-adapter.com/asus-g73jh-x1.html , ASUS G73JH-X1 akku


Title: Batteria Acer Aspire TimelineX 4830T,Caricabatterie / Alimentatore Acer Aspire TimelineX 4830T
Name: tianjin
Date: 11/7/2012 5:27:31 AM
Comment:
ASUS K40IN batteria http://www.batterietutti.com/asus-k40in-series.html Asus X53U batteria http://www.batterietutti.com/asus-x53u.html Asus A32-F82 batteria http://www.batterietutti.com/asus-a32-f82.html Asus A42-G73 batteria http://www.batterietutti.com/asus-a42-g73.html ASUS G72GX batteria http://www.batterietutti.com/asus-g72gx.html Asus K50I batteria http://www.batterietutti.com/asus-k50i-series.html Asus K42J batteria http://www.batterietutti.com/asus-k42j.html Asus A42-U53 batteria http://www.batterietutti.com/asus-a42-u53.html Asus Eee PC 1015PEM batteria http://www.batterietutti.com/asus-eee-pc-1015pem.html Asus AP31-1008HA batteria http://www.batterietutti.com/asus-ap31-1008ha.html ASUS G53JW-SX278V http://www.batterietutti.com/asus-g53jw-sx278v.html Asus A32-F82 batteria http://www.batterietutti.com/asus-a32-f82.html ASUS Eee PC T91 batteria http://www.batterietutti.com/asus-eee-pc-t91.html ASUS K93SV batteria http://www.batterietutti.com/asus-k93sv.html ASUS N50VN batteria http://www.batterietutti.com/asus-n50vn.html Asus k50 batteria http://www.batterietutti.com/asus-k50.html


Title: batteria HP Pavilion dv2
Name: tianjin
Date: 11/7/2012 4:49:30 AM
Comment:
Welcome to http://www.buonabatteria.com Low Priced High Quality Laptop batteries, Laptop Keyboards, Cooling Fans supply online, Wholesaler supplies Cheap Discount Laptop batteries, Laptop Keyboards, Cooling Fans from Notebook-parts.ca now. Online shop: batteria HP Pavilion dv2 http://www.buonabatteria.com/hp-pavilion-dv2.html batteria HP Pavilion g6 http://www.buonabatteria.com/hp-pavilion-g6.html batteria HP ProBook 4510s http://www.buonabatteria.com/hp-probook-4510s.html batteria HP EliteBook 2540p http://www.buonabatteria.com/hp-elitebook-2540p.html HP COMPAQ HSTNN-DB06 http://www.buonabatteria.com/hp-compaq-hstnn-db06.html batteria HP Mini 1000 http://www.buonabatteria.com/hp-mini-1000.html


Title: Notebook parts: laptop batteries, laptop keyboards, laptop cpu fans
Name: Cathycanad
Date: 6/14/2012 5:44:33 AM
Comment:
Welcome to Notebook-parts.ca- Low Priced High Quality Laptop batteries, Laptop Keyboards, Cooling Fans supply online, Wholesaler supplies Cheap Discount Laptop batteries, Laptop Keyboards, Cooling Fans from Notebook-parts.ca now. Online shop:http://www.notebook-parts.ca/


Title: Notebook parts: laptop batteries, laptop keyboards, laptop cpu fans
Name: Cathycanad
Date: 6/14/2012 5:43:56 AM
Comment:
Welcome to Notebook-parts.ca- Low Priced High Quality Laptop batteries, Laptop Keyboards, Cooling Fans supply online, Wholesaler supplies Cheap Discount Laptop batteries, Laptop Keyboards, Cooling Fans from Notebook-parts.ca now. Online shop:http://www.notebook-parts.ca/


Title: Notebook parts: laptop batteries, laptop keyboards, laptop cpu fans
Name: Cathycanad
Date: 6/14/2012 5:42:26 AM
Comment:
Welcome to Notebook-parts.ca- Low Priced High Quality Laptop batteries, Laptop Keyboards, Cooling Fans supply online, Wholesaler supplies Cheap Discount Laptop batteries, Laptop Keyboards, Cooling Fans from Notebook-parts.ca now. Online shop:http://www.notebook-parts.ca/


Title: Notebook parts: laptop batteries, laptop keyboards, laptop cpu fans
Name: Cathycanad
Date: 6/14/2012 5:41:58 AM
Comment:
Welcome to Notebook-parts.ca- Low Priced High Quality Laptop batteries, Laptop Keyboards, Cooling Fans supply online, Wholesaler supplies Cheap Discount Laptop batteries, Laptop Keyboards, Cooling Fans from Notebook-parts.ca now. Online shop:http://www.notebook-parts.ca/


Title: Dell laptop batteries and adapter
Name: adelaalan
Date: 6/2/2012 3:48:22 AM
Comment:
Replacement Dell Adamo / xps / alienware / inspiron / studio / latitude / vostro / precision laptop batteries and dell laptop ac power adapter, factory direct price and warranty http://www.dell-laptop-batteries-adapter.co.uk


Title: the passwords are genery used
Name: pcakkus
Date: 4/3/2012 5:18:19 AM
Comment:
laptop akkus http://www.rabattakkus.com acer akku Angebote großartige Aktionen, rabattakkus.com Der OriginalAkkuShop für günstige Akkus und Zubehör, Original Notebook Akku für Laptop .


Title: the passwords are genery used
Name: pcakkus
Date: 4/3/2012 5:17:56 AM
Comment:
laptop akkus http://www.rabattakkus.com acer akku Angebote großartige Aktionen, rabattakkus.com Der OriginalAkkuShop für günstige Akkus und Zubehör, Original Notebook Akku für Laptop .


Title: help from validation
Name: sa
Date: 3/23/2012 1:22:45 AM
Comment:
salary amount should allow special symbols in the validation using ASP.NET


Title: need help
Name: NASIRBASHIR
Date: 2/15/2012 9:12:11 AM
Comment:
plz giv me password min 8 char to inch 1 upper 1 lower case 1 numeric and i special char


Title: need help
Name: RJ
Date: 12/18/2011 11:59:16 PM
Comment:
how to correct at least one upper and one lower case character dodots21


Title: So complicated
Name: akku dell inspiron 17r
Date: 12/13/2011 5:38:14 AM
Comment:
Oh,my god!What's it? Shared with you : http://www.kaufen-akkus.com/dell-inspiron-17r.html


Title: Pattern Title
Name: Rex
Date: 12/9/2011 9:48:15 AM
Comment:
Username must have 8 characters. All the first 7 places must be numbers. The last places, the 8th place must be one of A-Z characters.


Title: Pattern Title
Name: Rex
Date: 12/9/2011 9:30:56 AM
Comment:
Username must have 8 characters. All the first 7 places must be numbers. The last places, the 8th place must be one of A-Z characters.


Title: Pattern Title
Name: Rex
Date: 12/9/2011 9:22:50 AM
Comment:
Username must have 8 characters. All the first 7 places must be numbers. The last places, the 8th place must be one of A-Z characters.


Title: validation
Name: saravanan
Date: 11/29/2011 6:34:43 AM
Comment:
how to set the characters in 5 to 15 in username


Title: validation
Name: saravanan
Date: 11/29/2011 6:33:48 AM
Comment:
how to set the characters in 5 to 15 in username


Title: This doesn't enforce mixed case
Name: ken
Date: 11/24/2011 1:47:42 PM
Comment:
This doesn't enforce mixed case


Title: Password must be at least eight characters long and must contain at least two of the following — letters, numbers, and special characters.
Name: Nishant Gupta
Date: 11/9/2011 1:57:02 PM
Comment:
Please enter a new password. Password must be at least eight characters long and must contain at least two of the following — letters, numbers,and special characters.


Title: Password must be at least eight characters long and must contain at least two of the following — letters, numbers, and special characters.
Name: Nishant Gupta
Date: 11/9/2011 1:56:33 PM
Comment:
Please enter a new password. Password must be at least eight characters long and must contain at least two of the following — letters, numbers,and special characters.


Title: Password must be between 8 and 20 characters, with at least one uppercase letter and at least one number
Name: Wendy Villanueva
Date: 9/7/2011 11:30:28 PM
Comment:
Password must be between 8 and 20 characters, with at least one uppercase letter and at least one number


Title: Password must be between 8 and 20 characters, with at least one uppercase letter and at least one number
Name: Wendy Villanueva
Date: 9/7/2011 11:03:23 PM
Comment:
Password must be between 8 and 20 characters, with at least one uppercase letter and at least one number


Title: Last character of a string should not be a special character
Name: Kailash
Date: 9/6/2011 9:05:10 AM
Comment:
Can you please provide me the regular expression in finding out whether a string has any special character(s) at last.


Title: Urgent
Name: Peeyush Pandey
Date: 8/2/2011 1:16:00 AM
Comment:
I want to validate a textbox accepting only numeric values greater than zero in asp.net through asp validators


Title: Urgent
Name: Peeyush Pandey
Date: 8/1/2011 5:45:17 AM
Comment:
I want to validate a textbox accepting only numeric values greater than zero in asp.net through asp validators


Title: Urgent
Name: Peeyush Pandey
Date: 8/1/2011 4:12:15 AM
Comment:
I want to validate a textbox accepting only numeric values greater than zero in asp.net through asp validators


Title: Urgent
Name: Peeyush Pandey
Date: 8/1/2011 3:32:39 AM
Comment:
I want to validate a textbox accepting only numeric values greater than zero in asp.net through asp validators


Title: urgent needed...
Name: antim
Date: 7/12/2011 3:33:18 AM
Comment:
Password should contain an uppercase,a lowercase,a digit and a special character give me sample password please...


Title: urgent needed...
Name: simplyjessie
Date: 6/21/2011 6:53:18 AM
Comment:
The password must contain at least 1 upper case letter, 1 lower case letter, 1 number and 1 special character (i.e. @ $ # _ ) give me sample password please...


Title: Urgent
Name: nuke17
Date: 5/15/2011 1:38:37 PM
Comment:
Please make validation control that can accept only alphanumeric characters and the symbols given below. In any sequence we can use these symbols with alphanumeric character. Not included space. 1)alphanumeric character 2). _ + @ - alphanumeric and these symbols 3)no space placed.


Title: Urgent
Name: nuke17
Date: 5/15/2011 1:37:41 PM
Comment:
Please make validation control that can accept only alphanumeric characters and the symbols given below. In any sequence we can use these symbols with alphanumeric character. Not included space. 1)alphanumeric character 2). _ + @ - alphanumeric and these symbols 3)no space placed.


Title: what is regular expression for following problem
Name: vijay
Date: 3/25/2011 2:54:35 AM
Comment:
Passwords are used for authentication purpose. Design software which checks for password for following rules The minimum length of Password should be 6 and maximum should be 12, both uppercase and lowercase characters are allowed. The password must start with a character The password should have at least two digits (0‐9) The special characters allowed in passwords are restricted to given set only {!, @,#,$,%,^,&,*,<,>,?,~} No sequence of characters is allowed in password. Repetition of characters in adjacent not allowed


Title: password validation
Name: wayne
Date: 3/23/2011 10:04:03 AM
Comment:
should contain 1)alphabet and number or 2)alphabet or special character but not all tcombined together.


Title: It is very interesting .<a href="http://www.efox-shop.com/"> Sciphones i68,ciphone c6,Ciphone,cecthandy,Sciphones ,cecthandys,hiphone,HIPHONE 4,pinpho
Name: ciphone
Date: 10/6/2010 10:07:11 AM
Comment:
It is very interesting .<a href="http://www.efox-shop.com/"> Sciphones i68,ciphone c6,Ciphone,cecthandy,Sciphones ,cecthandys,hiphone,HIPHONE 4,pinphone 3gs </a>Grosshandel in http://www.efox-shop.com/


Title: this expression doesnt work in IE 7
Name: Pradyumna
Date: 10/1/2010 2:44:27 AM
Comment:
The above expression has to be changed to ^(?=.{4,8}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).* so that it works in IE 7 and below.


Title: this expression doesnt work in IE 7
Name: Pradyumna
Date: 10/1/2010 2:41:34 AM
Comment:
The above expression has to be changed to ^(?=.{4,8}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).* so that it works in IE 7 and below.


Title: 3 characters long OR 3 digits long
Name: Sarah
Date: 9/30/2010 4:40:43 PM
Comment:
Is there a way to write a regular expression that basically says that the username can be, at least; 3 characters long, OR 3 digits long. -mainly my question is about how to write the OR part... is it just a pipe or two? Thanks in advance!


Title: Password Validation
Name: Chathu
Date: 8/9/2010 7:06:20 AM
Comment:
How do u write a validation expression to check repeatitions like 'aaaa' or sequences like '123456' ?


Title: In string check the the exsistence of "\r\n"
Name: vikrant kale
Date: 8/6/2010 6:20:23 AM
Comment:
Hi friends , I have to create a validtor for string ,that it contians aleast one "\r\n"


Title: regular expression for salary
Name: srinivas
Date: 7/23/2010 9:02:47 AM
Comment:
i want to knoe regular expression for salary


Title: phone number vallidation
Name: naresh
Date: 5/22/2010 8:12:58 AM
Comment:
must start with 6 or by +34 and have 9 or 12 digits


Title: phone number vallidation
Name: naresh
Date: 5/22/2010 8:12:08 AM
Comment:
must start with 6 or by +34 and have 9 or 12 digits


Title: regular expression
Name: sarath
Date: 4/28/2010 8:23:20 AM
Comment:
I need to use regular expression, for which enter key should not work. Example: I have to enter 16 digit number and then if i click on enter, it should validate.


Title: regular expression
Name: sudhu
Date: 4/15/2010 6:24:01 AM
Comment:
I need a regular expression for username which starts with alphabets and should contain numerics as well as special characters.


Title: Database Administrator
Name: John
Date: 3/22/2010 7:28:02 AM
Comment:
The following regular expressions are being used for password validation requiring two uppercase characters, two lowercase characters, two numbers, no spaces and two of the following special characters !@#$%^*_: with minimum of password length of 14: (?=^(?=.{14,256}$)(?=.*[A-Z].*[A-Z])(?=.*[a-z].*[a-z])(?=.*[0-9].*[0-9])(?=^[A-Za-z]{1})(?=.*[!@#$%^*_:].*[!@#$%^*_:])(?!.*[\s&quot;\s&amp;()+}{;=`~:\\|'?/>.<,])).*$


Title: regular expression
Name: hans
Date: 2/10/2010 2:48:00 AM
Comment:
first character should be a letter and next 6 characters should be a date(ex: 01-01-12), the next 6 characters should be integers and the last character again should be a letter.


Title: Ms
Name: Sundeep
Date: 10/7/2009 8:22:34 AM
Comment:
i need a password with Your password must be between 8-20 characters long and contain 3 of the following characters: a capital letter, a special character, a lower case letter and a number.


Title: Fix so it requires both upper and lower case characters
Name: Brad
Date: 2/10/2009 1:47:03 PM
Comment:
I noticed some were having issues with case sensitivity. You can modify the mode in the regular expression by adding some modifiers. To turn off case sensitivity use (?-i) and to turn on multiline use (?m). So the regular expression would be: (?-i)(?m)^(?=.*?\d)(?=.*?[a-z])(?=.*?[A-Z])[a-zA-Z].{8,20}$ (I also added code to require a password to start with a character)


Title: Fix so it requires both upper and lower case characters
Name: Brad
Date: 2/10/2009 1:46:42 PM
Comment:
I noticed some were having issues with case sensitivity. You can modify the mode in the regular expression by adding some modifiers. To turn off case sensitivity use (?-i) and to turn on multiline use (?m). So the regular expression would be: (?-i)(?m)^(?=.*?\d)(?=.*?[a-z])(?=.*?[A-Z])[a-zA-Z].{8,20}$ (I also added code to require a password to start with a character)


Title: Fix so it requires both upper and lower case characters
Name: Brad
Date: 2/10/2009 1:46:22 PM
Comment:
I noticed some were having issues with case sensitivity. You can modify the mode in the regular expression by adding some modifiers. To turn off case sensitivity use (?-i) and to turn on multiline use (?m). So the regular expression would be: (?-i)(?m)^(?=.*?\d)(?=.*?[a-z])(?=.*?[A-Z])[a-zA-Z].{8,20}$ (I also added code to require a password to start with a character)


Title: Validation expression
Name: Roshan
Date: 2/5/2009 4:53:45 AM
Comment:
Dear sir, Kindly provide validation expression for allowing special characters in multiline text box at your earliest.


Title: hyperlink in Multiline text box +Regular expression+ asp.net using C#
Name: pragya chaubisa
Date: 12/26/2008 12:57:59 AM
Comment:
hi, im doing a project in ASP.NET using C#. I have used a multiline text box in which when i type any url or mail id,it should be displayed as hyperlink at once,and other typed data remains same. for example[ this is just for example....other data..if you want...my email id is: [email protected] . ] Such type of working can be seen when sending mail,where after typing url it looks as a hyperlink. likewise i also need such functionality in my project.. will it be possible by using regular expression,if so then do let me know. please help me.. soon.


Title: hyperlink in Multiline text box +Regular expression+ asp.net using C#
Name: pragya chaubisa
Date: 12/26/2008 12:53:58 AM
Comment:
hi, im doing a project in ASP.NET using C#. I have used a multiline text box in which when i type any url or mail id,it should be displayed as hyperlink at once,and other typed data remains same. for example[ this is just for example....other data..if you want...my email id is: [email protected] . ] Such type of working can be seen when sending mail,where after typing url it looks as a hyperlink. likewise i also need such functionality in my project.. will it be possible by using regular expression,if so then do let me know. please help me.. soon.


Title: RegEx for Special chars
Name: BRR
Date: 12/16/2008 4:10:47 PM
Comment:
Hey , can any one help me out. My requirement says , Max of 8 Chars , contain atleast one upper case , one lower case , one number and one special character


Title: Does not require lower case
Name: CHJ
Date: 10/16/2008 6:39:19 PM
Comment:
It seems that ASDF123 passes w/o requiring a lower case letter, why is that?


Title: Does not require lower case
Name: CHJ
Date: 10/16/2008 6:39:08 PM
Comment:
It seems that ASDF123 passes w/o requiring a lower case letter, why is that?


Title: Pssword validation expression
Name: Raj
Date: 8/26/2008 6:11:13 AM
Comment:
Password validation expression : my passowrd should contain 6 to 8 characters, at least one letter and at least one number, contain no spaces and no special characters (e.g. &, >, *,$)


Title: Pssword validation expression
Name: Raj
Date: 8/26/2008 6:08:51 AM
Comment:
Password validation expression : my passowrd should contain 6 to 8 characters, at least one letter and at least one number, contain no spaces and no special characters (e.g. &, >, *,$)


Title: Pssword validation expression
Name: Raj
Date: 8/26/2008 5:52:40 AM
Comment:
Password validation expression : my passowrd should contain 6 to 8 characters, at least one letter and at least one number, contain no spaces and no special characters (e.g. &, >, *,$)


Title: Reg Ex for removing HTML characters except hyperlink <a href=..></a>
Name: Adam
Date: 7/29/2008 11:59:57 PM
Comment:
Please help me with a regular expression which removes all the HTML characters from a string except the hyperlink <a href=..></a>.


Title: How to ur new line character '\n' in below regular expression?
Name: Anil Desai
Date: 7/7/2008 6:24:00 AM
Comment:
Hi i use [a-zA-Z0-9 _\\-\\.\\\\\\,\\(\\)\\/]+$ type of regular expression. but in multiline textbox i can not able to use new line character. Here reguler expression show message when i press "Enter" in multiline textbox. So how to use above regular expression with new line? Thanks Anil Desai. [email protected]


Title: regular expression
Name: pbk
Date: 6/3/2008 5:39:59 AM
Comment:
i have using regular expression in multiline textbox it allow all the char,digits,special char.spaces how i use ecplain ,e


Title: username validation
Name: Rithu
Date: 4/15/2008 3:32:25 AM
Comment:
please help me with a regular expression that checks weather the username field starts with a character


Title: Reg Exp for Password
Name: Rahul
Date: 2/20/2008 8:00:29 AM
Comment:
Please tell me regular expression as per below condition: 1. Atleast one character, upper or lower case. 2. Atleast one digit. 3. Special characters are allowed [!@#$%^&*_]


Title: Reqular expression validator
Name: ghassan
Date: 7/28/2007 8:07:18 AM
Comment:
dd-mm-yy I wand the Reqular expression validator for that in the asp.net ,,,


Title: Reqular expression validator
Name: ghassan
Date: 7/28/2007 8:06:42 AM
Comment:
dd-mm-yy I wand the Reqular expression validator for that in the asp.net ,,,


Title: Reqular expression validator
Name: ghassan
Date: 7/28/2007 8:06:21 AM
Comment:
dd-mm-yy I wand the Reqular expression validator for that in the asp.net ,,,


Title: Reqular expression validator
Name: ghassan
Date: 7/28/2007 8:04:40 AM
Comment:
dd-mm-yy I wand the Reqular expression validator for that in the asp.net ,,,


Title: Does not work in ASP.NET 2.0
Name: Gregg J.
Date: 7/6/2006 5:35:13 PM
Comment:
This works in Firefox, but not in IE. For some reason the RegularExpression validor fails in IE on this one. I found a similar expression, that does work however.


Title: Pattern Title for Password Validation
Name: Shashikiran
Date: 4/22/2006 10:34:45 AM
Comment:
I hanve some extra requirements.I want to have to password which can have atleast one special character in it along with (atleast one capital letter and atlest one digit).


Title: Add other optional characters 2 match complexity policy
Name: Nike
Date: 2/14/2006 4:50:13 AM
Comment:
I used Matthew Hazzard's expression and it works fine. Now some dude want's to give users the ability to use additional characters in their passwords like: .-|$ But I can't add additional characters other than: _ Else there's no match at all. Where and how do I add those characters in the above expression? Regards, Nike


Title: Date regexp
Name: Saravanan
Date: 12/23/2005 5:54:54 AM
Comment:
Hi Friends, i want to validate a date using regexp. if anybody knows plz help me !


Title: none
Name: none
Date: 8/3/2005 7:57:59 PM
Comment:
how about excluding special characters?


Title: Thanks, I'm adding mine for mixed and no required
Name: skowronek
Date: 5/13/2005 2:09:35 AM
Comment:
Thanks for the help on the zero-width positive assertions. I've taken what was shown here and modified this to check combination upper/lowercase, no spaces, and some special characters ($#_!@). Min 6, max 10. ^(?=[\w$#_!@]{6,10})[\w$#_!@]{6,10}$


Title: Fine password RE
Name: ARjan
Date: 4/5/2005 3:59:55 AM
Comment:
Finaly one that works


Title: Numric Validation
Name: Kiran
Date: 3/16/2005 8:38:24 AM
Comment:
Hiii, I want validation expression for text box that only allow numeric value to enter. Please give me solution.


Title: Big Problem!!!
Name: vinod
Date: 10/26/2004 6:34:11 AM
Comment:
Hiii , JavaScript Experts, i want to put following constraints for password validations using regular Expression: 1)IT should start from 2 lower case letters(non consecutive) 2)after that it must contain 2 same numbers. 3)after that it must contain 3 Capital Letters which should be same 4)then any (letter or number) for next two positions e.g. vn55CCCxy or pn88AAAab or kd99BBB99


Title: Big Problem!!!
Name: vinod
Date: 10/26/2004 6:33:50 AM
Comment:
Hiii , JavaScript Experts, i want to put following constraints for password validations using regular Expression: 1)IT should start from 2 lower case letters(non consecutive) 2)after that it must contain 2 same numbers. 3)after that it must contain 3 Capital Letters which should be same 4)then any (letter or number) for next two positions e.g. vn55CCCxy or pn88AAAab or kk99BBB99


Title: Fix for client-side validators.
Name: Rajshree
Date: 10/5/2004 6:50:08 AM
Comment:
Simply do EnableClientScript="False" and use single backslash(\), ie. ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W).{8,}$" (do not change the .* position otherwise it won't work.) This is working on my VS....All The Best 2 u.


Title: Software Engineer
Name: Matthew Hazzard
Date: 6/18/2004 1:28:37 PM
Comment:
It appears that the Javascript implimenation consistantly performs a "greedy match" and does not backtrack correctly to impose constrants on the positionally relivent portion of the pattern i.e anything not inside (?= ). As a workaround the last pattern supplied is suitable. However, it does not correctly enforce the maximum number of characters. (?=[\w$#_ ]{6,20}) will match between 6 and 20 characters anywhere in the string. Therefore, the strings length is only limited by resources. A simple correction can be made to enforce the string start and beginning in the first zero-width lookahead match (FYI "_" is included in all implimenations of \w that I am aware of): "(?=^[\w$#]{6,20}$)(?=.*?\d)(?=.*?[A-Z])(?=.*?[a-z])^[\w$#]*$" This pattern has been validated for both Clientsidejavascript and ServerSide .NET validation controls. Thanks to all who contributed to this thread. I was going in circles trying to figure out why my client side validation was not matching proper


Title: Try This
Name: David Morock
Date: 6/11/2004 12:05:21 PM
Comment:
Regular expression to validate a password. Password must contain 6 characters and no more than 20, at least one upper case letter (A-Z), one lower case letter (a-z), and one numeric character (0-9). The other characters may be from the set A-Za-z0-9$#_\ plus blank. ^(?=[\w$#_ ]{6,20})(?=.*?\d)(?=.*?[A-Z])(?=.*?[a-z])[\w$#_ ]*$


Title: that's very good
Name: UP1M
Date: 4/12/2004 7:27:51 AM
Comment:
it works well with PHP. thx a lot, GOOD LUCK TO YOU!


Title: Extension of the password validation regex
Name: Manav Agarwal
Date: 3/2/2004 11:39:50 AM
Comment:
Steven, I was trying to use your example regex because I need to extend it to do the following: The password should have 3 out of 4 character classes: 1. Uppercase letters 2. Lowercase letters 3. Numerics 4. Special characters [@#$%^&] Any help that you can provide will be greatly appreciated.


Title: Fix for client-side validators.
Name: Lewis Moten
Date: 1/22/2004 10:21:30 AM
Comment:
Using ClientTarget="downlevel" does force the page to handle expression on the server-side. However, other parts of the page look bad. Try setting the EnableClientScript attribute to false for the regular expression that is giving you problems. All other validators on the page will still use the client-side validation. It appears that the portion that causes these client-side errors are the "(?=.*" patterns.


Title: Does not work with JavaScript and is inconsistant with ASP
Name: Mike S
Date: 1/2/2004 12:31:07 PM
Comment:
Does not work with JavaScript and is inconsistant with ASP. "AaAAa1" is a match on this site, but is not a match in ASP. Set re = New RegExp re.Pattern = "^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,8}$" response.write re.test("AaAAa1")


Title: Works for me 2
Name: Lungshou
Date: 12/17/2003 6:27:09 PM
Comment:
Update: we found that it works for both if you have ClientTarget="downlevel" in the page directive.


Title: Works for me
Name: lungshou
Date: 12/17/2003 6:05:14 PM
Comment:
This does work for me in the .net regular expression validator but not for a friend of mine. The only difference we can see is that he is using visualStudio and I do not??? (hi dave)


Title: Works with the Regex class
Name: raves
Date: 8/22/2003 4:40:20 AM
Comment:
thanks Steven. This works with the Regex class. Andre please try this expression with the Regex class in the System.Text.RegularExpression namespace.


Title: Does not work with RegExp Validator in Asp:net
Name: Andre Colbiornsen
Date: 8/7/2003 6:15:44 AM
Comment:
I'm sorry to say that when used as Expression in a Regular Expression validator, it doesn't work as expected.


Title: password regexp
Name: ian marran
Date: 7/16/2003 9:35:17 AM
Comment:
Very nice - how would you change it so that you cant use quote characters in the password?


Title: Doesn't work in Javscript (IE)
Name: Mark Axmann
Date: 6/6/2003 2:21:05 PM
Comment:
hey there. I'm needing a password check like this to do client side in javascript, but this doesn't work. I see that it works on this site, which looks to be using .NET, and it works in PERL, but not javascript. Anyone know why? thanks , Mark ([email protected])


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