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: abcd@hotmail.com . ]
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: abcd@hotmail.com . ]
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.
anildesai.net@gmail.com
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 (maxmann@xceligent.com)