Title: PPSNName: Aaron RooneyDate: 10/30/2014 6:17:10 PMComment: im trying to figure out how to use a ppsn number in a regular expression validator i cant figure out the charecters i need to enter please help

Title: PPSNName: Aaron RooneyDate: 10/30/2014 6:12:50 PMComment: im trying to figure out how to use a ppsn number in a regular expression validator i cant figure out the charecters i need to enter please help

Title: I have require only 6-16 character in string. Can any one have idea for that?Name: Gaurav BhandariDate: 9/13/2012 7:48:19 AMComment: I have require only 6-16 character in string. Can any one have idea for that?

Title: Note the IE BUGName: Microsoft is evil just like OracleDate: 7/8/2008 4:24:53 PMComment: It might be a good idea to move the length check to the beginning and the rest after that, like so:
(?=^.{8,15}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*

Title: This expression is NOT brokenName: Greg C.Date: 4/10/2008 6:16:23 PMComment: This isn't broken. It *CAN* validate for at least one upper- and one lower-case letter and one digit. However, the default settings for testing expressions on this site include "Case insensitive". With a case-insensitive match settings, it obviously *will* match "ABSCDEFG1".
When testing this, switch OFF the case-insensitive checkbox. And if you want it to work in IE, you need to tweak things like this:
^(?=.{8,15}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*
See http://blog.stevenlevithan.com/archives/regex-lookahead-bug

Title: not working as intendedName: AnonDate: 10/3/2007 9:20:03 AMComment: Works for ABCDEFG9 which fails description as at least one lower case is required

Title: possible alternativeName: DougDate: 10/18/2006 5:22:17 PMComment: I believe this might be a possible alternative:
(?=^.{7,12}$)(?=.*\d)(?=.*[A-Z])(?=.*[a-z]).*
Since it appears that IE doesn't do the lookaheads properly, I just put the length requirement as the lookahead itself. Notice the ^ and the $ are inside the lookahead that checks the length, otherwise that lookahead would pass on anything greater than or equal to 7 characters.
The only other change I make when using this regex myself, is that I prefer to replace the final dot with a character class that has only the characters I prefer to allow:
(?=^.{7,12}$)(?=.*\d)(?=.*[A-Z])(?=.*[a-z])[!-~]*
or
(?=^.{7,12}$)(?=.*\d)(?=.*[A-Z])(?=.*[a-z])[^\s]*

Title: Sorry Not WorkingName: ChandanDate: 3/8/2005 4:27:34 AMComment: It is not working with ASP.NET Reg. Exp. Validator. Please if you have any other for the same please mail me in chandan.agarwal1779@yahoo.co.in
Thank you

Title: problem with lower and upper caps.Name: Andres GarciaDate: 10/5/2004 3:27:37 PMComment: Supposedly 12aaaa12 does not match, but it does.
this expression does NOT enforce lower AND upper caps. It enforces alphanumeric and numeric only

Title: Re: Slight modification for JavaScriptName: Michael AshDate: 10/5/2004 10:44:02 AMComment: The modified expression is NOT equivalent to the original. In fact the modified version matches everything (except a newline). Try it with 8 of the same character. The movement of the astericks makes all the look-aheads superfluous.
Also, there is actually no reason the original shouldn't work in javascript. It is syntaxally sound. There appears to be a bug with the client side engines. I'm getting ood results when testing it.

Title: Slight modification for JavaScriptName: Dave B.Date: 10/4/2004 8:47:31 PMComment: This works great for .NET but not when you try to use .NET RegExp Validators which use client-side JavaScript. I made a small change to work in JavaScript (note the movement of the asterisks):
^(?=.\d*)(?=.[a-z]*)(?=.[A-Z]*).{8,15}$

Title: stinkName: this sucks and doesnt workDate: 8/9/2004 12:35:25 PMComment: it doesnt work in asp

Title: Not universalName: ClaytonDate: 7/27/2004 11:35:44 PMComment: Does not work in IE 6 SP1.
Works in Firefox 0.9

Title: Puzzling ErrorName: SampsonDate: 3/1/2004 11:52:12 AMComment: When I run this with "test expression" on this site, it works great, but when I try to use it in the built-in reg expression validator on the asp page, it evaluates the expression as requiring 6 numbers, 6 letters. I copied and pasted, so I know the syntax is ok..any thoughts?