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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 77 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 77
Title Test Details Strongish Password
Expression
^[a-zA-Z]\w{3,14}$
Description
The password's first character must be a letter, it must contain at least 4 characters and no more than 15 characters and no characters other than letters, numbers and the underscore may be used
Matches
abcd | aBc45DSD_sdf | password
Non-Matches
afv | 1234 | reallylongpassword
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
^(?=.*\d).{4,8}$
Description
Password expression. Password must be between 4 and 8 digits long and include at least one numeric digit.
Matches
1234 | asdf1234 | asp123
Non-Matches
asdf | asdf12345 | password
Author Rating: The rating for this expression. Steven Smith
Title Test Details 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: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
^.{4,8}$
Description
Matches any string between 4 and 8 characters in length. Limits the length of a string. Useful to add to password regular expressions.
Matches
asdf | 1234 | asdf1234
Non-Matches
asd | 123 | asdfe12345
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
("[^"]*")|('[^\r]*)(\r\n)?
Description
Will match a VBScript string and/or comment Ex: ' userinfo strUsername = "tomsve" iAge = 20 ' temp strPassword = "halloj" ...Would result in the following matches: ' userinfo "tomsve" ' temp "halloj" Good luck! Tom S. info@tomsvensson.com
Matches
"my string" | "a string with ' in it" | ' comment
Non-Matches
asd "
Author Rating: Not yet rated. Tom Svensson
Title Test Details Pattern Title
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{4,8}$
Description
Password expresion that requires one lower case letter, one upper case letter, one digit, 6-13 length, and no spaces. This is merely an extension of a previously posted expression by Steven Smith (ssmith@aspalliance.com) . The no spaces is new.
Matches
1agdA*$# | 1agdA*$# | 1agdA*$#
Non-Matches
wyrn%@*&$# f | mbndkfh782 | BNfhjdhfjd&*)%#$)
Author Rating: The rating for this expression. Jeremy Samuel
Title Test Details Pattern Title
Expression
^([1-zA-Z0-1@.\s]{1,255})$
Description
A general string validation to insure no malicious code is being passed through user input. General enough too allow email address, names, address, passwords, so on. Disallows ‘,\*&$<> or other characters that could cause issues.
Matches
email@email.com | My Name | asdf12df
Non-Matches
‘,\*&$<> | 1001' string
Author Rating: The rating for this expression. Paul Miller
Title Test Details Pattern Title
Expression
^([a-zA-Z0-9@*#]{8,15})$
Description
Password matching expression. Match all alphanumeric character and predefined wild characters. Password must consists of at least 8 characters and not more than 15 characters.
Matches
@12X*567 | 1#Zv96g@*Yfasd4 | #67jhgt@erd
Non-Matches
$12X*567 | 1#Zv_96 | +678jhgt@erd
Author Rating: The rating for this expression. lawson law
Title Test Details Pattern Title
Expression
^(?![0-9]{6})[0-9a-zA-Z]{6}$
Description
matches a six character "password" that has to consist of numbers and letters with at least one letter in it.
Matches
123a12 | a12345 | aaaaaa
Non-Matches
111111
Author Rating: Not yet rated. James T. Kirk
Title Test Details Pattern Title
Expression
^([0-9A-Za-z@.]{1,255})$
Description
This is an update of Paul Miller's RegEx. It will cut out literal <> but I haven't fully tested it, it's just a quick fix since his didn't work all that well. I also took out the \s. You could add this back in but I use this for very simple password verification, and I certainly have no use for spaces in my passwords.
Matches
BigBlue | 1234.1411 | bob@bob.com
Non-Matches
<>'&amp&lt&rt*^%$
Author Rating: Not yet rated. Cal Guisti
Title Test Details Pattern Title
Expression
(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,15})$
Description
I built this expression to test a string in ASP for valid username and password constraints. It can be adapted for any number of scenerios. For instance in this case, we needed to ensure the username someone wanted was not all numbers or all letters and was 6-15 characters in length with no special characters. This expression tests negatively for all number cases, then all letter cases, and lastly tests for only alphanumeric characters in the required range. In other words: the match must be alphanumeric with at least one number, one letter, and be between 6-15 character in length.
Matches
C2dfeed | sporttrak1 | 11223a
Non-Matches
pookie | d34_fff | 123456
Author Rating: The rating for this expression. Pete Lindquist
Title Test Details Pattern Title
Expression
[^A-Za-z0-9]
Description
To detect non-alphanumeric characters (for new username/password validation, for instance): monkey(AT)greyledge.net 14-Oct-2003 11:26
Matches
!@#$ | %^&* | '><?.,"
Non-Matches
ABC123abc | abc123ABC | abc0132ABC
Author Rating: The rating for this expression. meet zorrer
Title Test Details Pattern Title
Expression
^(?=[^\d_].*?\d)\w(\w|[!@#$%]){7,20}
Description
This regex can be used to restrict passwords to a length of 8 to 20 aplhanumeric characters and select special characters. The password also can not start with a digit, underscore or special character and must contain at least one digit.
Matches
password1 | pa$$word2 | pa!@#$%3
Non-Matches
password | 1stpassword | $password#
Author Rating: The rating for this expression. Michael Ash
Title Test Details Pattern Title
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15}$
Description
Password matching expression. Password must be at least 8 characters, no more than 15 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit.
Matches
aaaa1234AAAA | 12aaAA12 | aaaaa12345AAAAA
Non-Matches
aaaaa123456AAAAA | 12aaAA1 | 12aaaa12
Author Rating: Not yet rated. Jeff U
Title Test Details Pattern Title
Expression
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
Description
Password must contain at least one letter, at least one number, and be longer than six charaters.
Matches
a1b2c3 | abcdefg123 | 12345a
Non-Matches
abcdefghij | 1234567890
Author Rating: Not yet rated. Eric Miller
Title Test Details Pattern Title
Expression
(?=^.{6,255}$)((?=.*\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))^.*
Description
THE Complex Password Filter Matching 3 of 4 Character catagories: 1.) at least 1 upper case character 2.) at least 1 lower case character 3.) at least 1 numerical character 4.) at least 1 special character It also enforces a min and max length and works for .Net and script Regex implimentations.
Matches
Passw0rd | assW@rd | 1B2a345@#$%
Non-Matches
123123123 | Password | asdf&
Author Rating: The rating for this expression. Matthew Hazzard
Title Test Details Pattern Title
Expression
(?:Provider="??(?<Provider>[^;\n]+)"??[;\n"]??|Data\sSource=(?<DataSource>[^;\n]+)[;\n"]??|Initial\sCatalog=(?<InitialCatalog>[^;\n]+)[;\n"]??|User\sID=(?<UserID>[^;\n]+)[;\n"]??|Password="??(?<Password>[^;\n]+)"??[;\n"]??|Integrated\sSecurity=(?<IntegratedSecurity>[^;\n]+)[;\n]??|Connection\sTimeOut=(?<ConnectionTimeOut>[^;\n]+)[;\n"]??)+$
Description
This RegExp is degigned to mach SQL OLEDB Connection String to the Named Groups Properties useful for .Net MATCH EXAMPLE(the submition field is too short):Provider=&quot;SQLOLEDB.1&quot;;Data Source=(local);Initial Catalog=master;User ID=sa;Password=&quot;SA_PASS&quot;;Connection TimeOut=90
Matches
Provider="SQLOLEDB.1";Data Source=(local);Initial Catalog=master;User ID=sa;Password=&quot
Non-Matches
Any non SQL Connection String
Author Rating: The rating for this expression. Jordan Ilchev
Title Test Details Pattern Title
Expression
\w{5,255}
Description
This is User Name &amp; Password validation expression. It does not allow blank spaces as well as special characters like $#%@&amp;*(){}+
Matches
aa123_ter12 | aa4587 | 784566
Non-Matches
123*-/ mksj
Author Rating: Not yet rated. Chandan Agarwal
Title Test Details Pattern Title
Expression
^(?=.*\d)(?=.*[a-zA-Z])(?!.*[\W_\x7B-\xFF]).{6,15}$
Description
Password validator Requires 6-20 characters including at least 1 upper or lower alpha, and 1 digit. It should disallow just about everything else, inluding extended characters.
Matches
abc123 | BA99342bob | 1232z123311
Non-Matches
abcdef | 123456 | 123'ABC
Author Rating: Not yet rated. Tim Conama
Title Test Details Pattern Title
Expression
(?=^.{6,10}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&amp;*()_+}{&quot;:;'?/&gt;.&lt;,])(?!.*\s).*$
Description
This regular expression match can be used for validating strong password. It expects atleast 1 small-case letter, 1 Capital letter, 1 digit, 1 special character and the length should be between 6-10 characters. The sequence of the characters is not important. This expression follows the above 4 norms specified by microsoft for a strong password.
Matches
1A2a$5 | 1234567Tt# | Tsd677%
Non-Matches
Tt122 | 1tdfy34564646T*
Author Rating: The rating for this expression. Sujata Bhave
Title Test Details Pattern Title
Expression
Password=&quot;(\{.+\}[0-9a-zA-Z]+[=]*|[0-9a-zA-Z]+)&quot;
Description
Matches unencrypted or encrypted SAS password in OMR configuration files
Matches
Password=&quot;{sas001}Zm9v&quot; | Password=&quot;{sas001}czFhY2tlcnM=&quot; | Password=&quot;s1ack
Non-Matches
{}xyz | Password=
Author Rating: Not yet rated. John Shelby
Title Test Details Pattern Title
Expression
^(([A-Za-z]+[^0-9]*)([0-9]+[^\W]*)([\W]+[\W0-9A-Za-z]*))|(([A-Za-z]+[^\W]*)([\W]+[^0-9]*)([0-9]+[\W0-9A-Za-z]*))|(([\W]+[^A-Za-z]*)([A-Za-z]+[^0-9]*)([0-9]+[\W0-9A-Za-z]*))|(([\W]+[^0-9]*)([0-9]+[^A-Za-z]*)([A-Za-z]+[\W0-9A-Za-z]*))|(([0-9]+[^A-Za-z]*)([A-Za-z]+[^\W]*)([\W]+[\W0-9A-Za-z]*))|(([0-9]+[^\W]*)([\W]+[^A-Za-z]*)([A-Za-z]+[\W0-9A-Za-z]*))$
Description
Password with minimum 1 Letter (A-Za-z), 1 Number (0-9) and Special Character (\W). It doesn't matter the charaters position. See the Mathching Examples. Question? Write an Email to me.
Matches
test22!! | !!test22 | 22!!test
Non-Matches
test22 | !!test | 22!!
Author Rating: The rating for this expression. Andreas Feiden
Title Test Details Pattern Title
Expression
^(([a-zA-Z]+\d+)|(\d+[a-zA-Z]+))[a-zA-Z0-9]*$
Description
Password validator that validates the password contains 1 letter (regardless of case) and 1 number
Matches
Password1 | 1Password | 1Password1
Non-Matches
*Password1 | *1Password* | *1Password1*
Author Rating: The rating for this expression. Patrick McElrath
Title Test Details Pattern Title
Expression
(?=^.{8,30}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&amp;*()_+}{&quot;&quot;:;'?/&gt;.&lt;,]).*$
Description
Password filter that matches the NSA Password filter DLL ENPASFILT.DLL. At least 1 small-case letter At least 1 Capital letter At least 1 digit At least 1 special character Length should be between 8-30 characters. Spaces allowed The sequence of the characters is not important.
Matches
Pa$$w0rd
Non-Matches
Pa$$word
Author Rating: The rating for this expression. Chris Blankenship
Title Test Details Password Matching Expression
Expression
^(?=.*[a-zA-Z].*[a-zA-Z])(?=.*\d.*\d)[a-zA-Z0-9]{6,20}$
Description
Password matching expression. Password must consists of at least 6 characters and not more than 20 characters. Password must contain only letters and digits. Password must contain at least 2 digits and at least 2 letters.
Matches
a1b2c3
Non-Matches
aaaaa1
Author Rating: Not yet rated. Didier Marin
Title Test Details Password Overdue
Expression
^(?=[a-zA-Z])(?=.*[0-9])(?=.*[#\$_])(?=.*[A-Z])(?=.*[a-z])(?!.*[^a-zA-Z0-9#\$_])(?!.*\s).{8,12}$
Description
Pattern must match 8-12 character, numeric, and symbol combination 1) at least one uppercase letter, 2) at least on lowercase letter, 3) at least one number, 4) and one special charater, that is specified in advanced. The first character must be a character upper or lower, and no spaces allowed.
Matches
aASPg#S1|Dsa3d$d
Non-Matches
aASPg(#S1|1ASPg#S1|DS#113DA
Author Rating: The rating for this expression. Michael Arnwine
Title Test Details connection string password
Expression
(pwd|password)\s*=\s*(?<pwd>('(([^'])|(''))+'|[^';]+))
Description
This pattern matches the password from a SQL Server connection string.
Matches
server=(local);password='O''Brian';
Non-Matches
invalid connection strings
Author Rating: The rating for this expression. Eugen Anghel
Title Test Details Password not start or end with number
Expression
^((?=[^\d])(?=^*[^0-9]$)(?!.*')(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s))?(?=.*[^\d]$).{8,15}$
Description
This pattern is a extension of Jeremy Samuel's password pattens, I included a validation for the string not end with number
Matches
arielMM{3s | Arielmm&2s
Non-Matches
1arielMM{3s | Arielmm&2
Author Rating: The rating for this expression. Ariel Martínez
Title Test Details Very Strong Password
Expression
^(?=.*[a-z].*[a-z])(?=.*[A-Z].*[A-Z])(?=.*\d.*\d)(?=.*\W.*\W)[a-zA-Z0-9\S]{9,}$
Description
This pattern requires at least two lowercase letters, two uppercase letters, two digits, and two special characters. There must be a minimum of 9 characters total, and no white space characters are allowed.
Matches
A1!B2@cde
Non-Matches
ABC!@#123
Author Rating: The rating for this expression. Philip
Title Test Details Strong Password
Expression
^(?=(.*[a-z]){1,})(?=(.*[\d]){1,})(?=(.*[\W]){1,})(?!.*\s).{7,30}$
Description
The basic expression requires at least 1 lower case, 1 upper case, 1 numeric, 1 non-word and no whitespace. <br /><br /> The format of the expression lends itself to being parameterised, thus in C# I have a method that returns a modified pattern based on passed in parameters e.g. <br /><br />return "^(?=(.*[a-z]){" + minLowerCase.ToString() + ",})"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ "(?=(.*[\d]){" + minNumeric.ToString() + ",})"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;... <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ ".{" + minLength.ToString() + "," + maxLength.ToString() + "}$");<br /><br />Its then possible to set the password strength via configuration files which require strong passwords in production environments, but allow weaker passwords in development environments.
Matches
qW1@xxx
Non-Matches
qwerty123
Author Rating: Not yet rated. Chris Stead
Title Test Details URI Validation & Extraction
Expression
^((http|https|ftp):\/\/)?((.*?):(.*?)@)?([a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])((\.[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])*)(:([0-9]{1,5}))?((\/.*?)(\?(.*?))?(\#(.*))?)?$
Description
Validates and extracts URI components. Protocol is optional. Username & Password is optional. Host regex was taken from Remi Sabourin and follows RFC1035 except that it allows hostnames greater than 253 chars. Also TLD length is not restriced. Port number is optional. Absolute Path is optional, and also extracts the optional querystring and optional anchor reference.
Matches
http://john:@www.domain.com:8080/index.html?param=value#Page1
Non-Matches
http://www.domain.com:/ | www-.domain.com
Author Rating: Not yet rated. John Bayly
Title Test Details password without using lookaheads
Expression
^(.{0,}(([a-zA-Z][^a-zA-Z])|([^a-zA-Z][a-zA-Z])).{4,})|(.{1,}(([a-zA-Z][^a-zA-Z])|([^a-zA-Z][a-zA-Z])).{3,})|(.{2,}(([a-zA-Z][^a-zA-Z])|([^a-zA-Z][a-zA-Z])).{2,})|(.{3,}(([a-zA-Z][^a-zA-Z])|([^a-zA-Z][a-zA-Z])).{1,})|(.{4,}(([a-zA-Z][^a-zA-Z])|([^a-zA-Z][a-zA-Z])).{0,})$
Description
Passwords with at least 1 letter, at least 1 non-letter, and at least 6 characters in length. It is lenthy with a repeating pattern so that I could validate all three conditions in one expression without using a lookahead, "?=", which are not handled correctly in Internet Explorer.
Matches
12345a | abcde* | ABC123
Non-Matches
12ab | abcdef | 123456
Author Rating: The rating for this expression. Brian S
Title Test Details Password complexity
Expression
(?=[-_a-zA-Z0-9]*?[A-Z])(?=[-_a-zA-Z0-9]*?[a-z])(?=[-_a-zA-Z0-9]*?[0-9])[-_a-zA-Z0-9]{6,}
Description
Tests if the input consists of 6 or more letters, digits, underscores and hyphens. The input must contain at least one upper case ltter, one lower case letter and one digit.
Matches
M0_k3y Pa-sW0rd S1mPl3
Non-Matches
MonKey PassWord simple
Author Rating: The rating for this expression. Roberto Santana
Title Test Details Password Validation
Expression
^.*(?=.{6,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).*$
Description
Well, I don't remember where from I got this expression, but I modified it a bit to work with asp.net 2.0's Regular expression validator. This validates if the password has atleast 6 characters, of which, atleast 1 character has to be Upper case, atleast 1 lower case, atleast 1 number and atleast one non-word character(say special symbols). Hope this is helpful.
Matches
Aa@123
Non-Matches
abcde, ASaa
Author Rating: The rating for this expression. Sravan
Title Test Details Strong Password
Expression
(?=^.{8,}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s)[0-9a-zA-Z!@#$%^&*()]*$
Description
This regular expression can be used for validating a strong password. It expects at least 1 lowercase letter, 1 uppercase letter, and 1 digit. It will also allow for some special characters. The length should be greater than 8 characters. The sequence of the characters is not important.
Matches
Password1|1Passwor|passworD1|2passWord|Pass2Word|pa1SS2word|!1qAzxsw2
Non-Matches
q3w4e5er|asdfg|asdfghjkl;|ag asg ag|d36234724|mko)+OKM1
Author Rating: The rating for this expression. Scot Baird
Title Test Details Password Matcher
Expression
^.*(?=.{6,10})(?=.*[a-zA-Z].*[a-zA-Z].*[a-zA-Z].*[a-zA-Z])(?=.*\d.*\d).*$
Description
6-10 characters, at least 4 characters and at least 2 numbers
Matches
etem12,12etem
Non-Matches
1etema, etema1
Author Rating: Not yet rated. Etem Emrah Alicli
Title Test Details Strong Password
Expression
(?-i)(?=^.{8,}$)((?!.*\s)(?=.*[A-Z])(?=.*[a-z]))(?=(1)(?=.*\d)|.*[^A-Za-z0-9])^.*$
Description
Strong password with the following requirements. - At least 8 characters long. - At least 1 uppercase, AND at least 1 lowercase - At least 1 digit OR at least 1 alphanumeric. - No spaces.
Matches
a3dAbed. | P@ssword1 | aB_1bbbb | myPassw0rd!
Non-Matches
password | password12 | password__12 | p@ssw0rd
Author Rating: The rating for this expression. Eric Malamisura
Title Test Details asp.net password createuserwizard default
Expression
(?=^.{7,51}$)([A-Za-z]{1})([A-Za-z0-9!@#$%_\^\&\*\-\.\?]{5,49})$
Description
7 alphanumeric 1 non-alphanumeric
Matches
mydemos!te | testingyo#urlive | myn@meforyou
Non-Matches
testing4yourlive | test1ngmore | worknowMMM
Author Rating: Not yet rated. Jorge Arturo Aviles Nuñez (Mexico)
Title Test Details Password
Expression
^([a-zA-Z0-9]{4,18}?)$
Description
My simple but effective password regex. The password can only contain letters and/or digits and must be at least 6 characters long and no more than 20. I know it says {4,18} but it just works out that way. The question mark was added for optimization. Also, the password can not begin or end with a space or underscore.
Matches
abc123
Non-Matches
_abc123_
Author Rating: The rating for this expression. Ted Cambron
Title Test Details Password validation
Expression
(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,10})$
Description
Validates a strong password. It must be between 8 and 10 characters, contain at least one digit and one alphabetic character, and must not contain special characters
Matches
test1test
Non-Matches
testtest
Author Rating: The rating for this expression. ravi pulluri
Title Test Details Strong password
Expression
(?-i)(?=^.{8,}$)((?!.*\s)(?=.*[A-Z])(?=.*[a-z]))((?=(.*\d){1,})|(?=(.*\W){1,}))^.*$
Description
Password must have at least 8 characters with at least one Capital letter, at least one lower case letter and at least one number or special character.
Matches
Spring08 | spR1ng14 | ~Spring%
Non-Matches
spring | SpringSp | 12345678
Author Rating: The rating for this expression. Alex G
Title Test Details Validate very strong password
Expression
^(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?=.*[a-z])(?=.*[A-Z])(?i-msnx:(?!.*pass|.*password|.*word|.*god|.*\s))(?!^.*\n).*$
Description
This regular expression can be used to validate a strong password. It will evaluate to true if the following critera are met: Must be 8 characters in length total. Must contain at least 1 digit. Must contain at least 1 lower case letter. Must contain at least 1 upper case letter. Must contain at least 1 non-character (such as !,#,%,@, etc). Must not contain the words "password" or "pass" or "word" or "god" Must not contain a whitespace. Note: This version is not compatible with JavaScript
Matches
one2!fouR, @Eight21, one22Four%, 2thRee@four, 7diPity*, 12345aB(
Non-Matches
one2three!, four2345, #viced@#$, short1@
Author Rating: The rating for this expression. Charles Forsyth
Title Test Details Patern Title
Expression
^(?=.*\d)(?=.*[a-z])([a-z0-9]{8,25})$
Description
Password matching expression. Password must be at least 8 characters,no more then 25 characters, must include at least 1 lower case letter and 1 numeric digit. Upper case, space and punctuation marks are not allowed.
Matches
aaaaaaa1|abcdefghijklmnoprqstu1234|1234567a
Non-Matches
aaaaaaA1|0123456789kB|1234567890abcde123456 A%.
Author Rating: Not yet rated. Yavuz Oztemel
Title Test Details Match a string containing at least 2 numbers and at least 6 alphabetic
Expression
(?=(.*\d.*){2,})(?=(.*[a-zA-Z].*){6,})
Description
Check password containing at least x numbers and y alphabetic. Use look back expression (?= )
Matches
abc2de2f, 2kdfd223df
Non-Matches
2abcdefgh, 9abc32de232
Author Rating: Not yet rated. Longge Ruan
Title Test Details Password 6 symbols and must containt non-captial letter and digit
Expression
^(?=.{6,})(?=.*[0-9].*)(?=.*[a-z].*).*$
Description
Password of 6 symbols. Must containt at leats one non-captial letter and at least digit digit
Matches
abc123 | ()()a1 | _ABCDa1
Non-Matches
abcdef | ab_12 | ABC123
Author Rating: Not yet rated. Marius
Title Test Details Password Rule
Expression
^(?=.*\d)(?=.*[a-zA-Z])(?!.*\s).{6,12}$
Description
Tests that a password contains between 6 and 12 characters, and contains at least one number.
Matches
Password1, pAsSwOrD23
Non-Matches
pwd, ThisPasswordIsTooLong3423423
Author Rating: The rating for this expression. Keith Stacy
Title Test Details Regx for strong password
Expression
^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$)
Description
This Expression will allow at least one small letter, one capital and one numeric digit. And length of the password is minimum of 8 and allowed special chars are pre defined(@\$=!:.#%),special chars are optional in password
Matches
Password1 | Password@1 | password#1
Non-Matches
password1 | password1~ | Pass123
Author Rating: Not yet rated. bussureddy82
Title Test Details .NET MembershipProvider strong password validation for PasswordStrengthRegularExpression
Expression
(?=^[!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]{7,}$)(?=([!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]*\W+){1,})[!@#$%\^&*()_\-+=\[{\]};:<>|\./?a-zA-Z\d]*$
Description
Regex to validate strong password for .NET MembershipProvider ValidatePassword. Regex checks for minimum required password length and for minimum required non-alphanumeric characters. Change value '7' according to MinRequiredPasswordLength and '1' to MinRequiredNonAlphanumericCharacters.
Matches
12345!r@r | #dfgjaydh% | aA1!@#$% | 11111#aZ
Non-Matches
12345rfg | hsjahdgs | 12345
Author Rating: The rating for this expression. Bram van den Broek
Title Test Details Alphanumeric Password with Special Character Support
Expression
(?=^.{7,20}$)(?=.*\d)(?=.*[a-zA-Z])(?!.*\s)[0-9a-zA-Z*$-+?_&=!%{}/'.]*$
Description
Password length must be between 7 and 20 characters, include at least one alphabetic and one numeric character, and may include some special characters.
Matches
test1234 | test$%9* | Test$123
Non-Matches
testing | 12345678 | !@#$%^&*
Author Rating: The rating for this expression. Mike Pillittere
Title Test Details Validate password has at least 4 non-alphanumeric characters within it
Expression
^(?=.*(\W.*){4,}).*$
Description
This RegEx will validate a password that has at least 4 non-alphanumeric characters in it. The characters do not need to be adjacent.
Matches
test$#%! t#e!s%t& #$test!@ %te#@st#!
Non-Matches
test#$% %test#@ @t%e#st @test te%!st
Author Rating: Not yet rated. Charles Forsyth
Title Test Details Strong Password
Expression
(?=^.{8,15}$)((?!.*\s)(?=.*[A-Z])(?=.*[a-z])(?=(.*\d){1,}))((?!.*[",;&|'])|(?=(.*\W){1,}))(?!.*[",;&|'])^.*$
Description
Password must have at least 8 characters and maximum of 15 characters with at least one Capital letter, at least one lower case letter and at least one number.Special character is optional. Special characters ",;&|' not allowed.
Matches
Sathish2 | Sathi$h2 | Sath1sh
Non-Matches
sathish | sathish2 | Sathish&2 | Sath|sh
Author Rating: The rating for this expression. Sathishkumar
Title Test Details Password
Expression
^(?=.*[\d])(?=.*[A-Z])(?=.*[a-z])[\w\d!@#$%_]{6,40}$
Description
Password must be 6-40 characters - {6,40} Must have no spaces, at least 1 digit (?=.*[\d]), at least 1 uppercase letter (?=.*[A-Z]) and at least one lowercase letter (?=.*[a-z]). Allows specifying special characters - !@#$%_
Matches
Pa5$Word | HORS3y | Th1$IsMyR3allYl0ngPa$$
Non-Matches
PASSWORD | password | Password | 1234567
Author Rating: Not yet rated. Timothy Dutton
Title Test Details Simple Password
Expression
^([a-zA-Z])(?=.*\d)\w{4,9}$
Description
Check Password: 5 - 10 characters long, start with a letter and contain at least one number. No special characters
Matches
a2345 | abcd1 | abc123
Non-Matches
1abc | 1abcd | a2345678910
Author Rating: Not yet rated. Greg Gamble
Title Test Details Validate 15 - 30 Character Passwords
Expression
^(?=.*\d{2})(?=.*[A-Z]{2})(?=.*[\D,\W,\S]{2})(?=.*[a-z]).{15,30}$
Description
For matching passwords (or any words) with the following requirements... 15 - 30 Characters; At least 2 Numeric 0-9, 2 Special !,^,&... & 2 Uppercase A-Z
Matches
Pr3ee@C1tyUSi1$
Non-Matches
Blah
Author Rating: Not yet rated. Paul Bratcher
Title Test Details Strong password
Expression
^(?=(.*[a-zA-Z].*){2,})(?=.*\d.*)(?=.*\W.*)[a-zA-Z0-9\S]{8,15}$
Description
Strong passwords with min 8 - max 15 character length, at least two letters (not case sensitive), one number, one special character (all, not just defined), space is not allowed.
Matches
&test*81 | te$tPa55word | testpass(7
Non-Matches
mypassword | pass%5 | test5324 | 374833e**
Author Rating: Not yet rated. Miljana Grasilovic
Title Test Details Strong password
Expression
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d.*)(?=.*\W.*)[a-zA-Z0-9\S]{8,15}$
Description
Strong passwords with min 8 - max 15 character length, at least one uppercase letter, one lowercase letter, one number, one special character (all, not just defined), space is not allowed.
Matches
te$tPa55word | Passw0r|) | Pa$sw0rd
Non-Matches
&test*81 | testpass7* | TestPassw0rd
Author Rating: Not yet rated. Miljana Grasilovic
Title Test Details Password Verification
Expression
^(?=.*\d)(?=.*[A-Za-z])(?!.*[!@#\$%\^&\*\(\)\+=\|;'"{}<>\.\?\-_\\/:,~`]).{6,20}$
Description
Validates passwords to be 6-20 characters of letter and numbers and NO special characters (that appear on the keyboard). Adjust numbers at the end and remove special characters (after the "(?!") as needed. Numbers appear at the END to address an IE problem with zero-width look-aheads.
Matches
abc123 | 8e9272wi8 | WEF896wdfso
Non-Matches
iD0notM@tch | n3itherDO_!
Author Rating: Not yet rated. Brad Williams
Title Test Details Password
Expression
(?!^[0-9 ]*$)(?!^[a-zA-Z ]*$)^([a-zA-Z0-9 ]{6,15})$
Description
This expression validates alphanumeric with one alphabet compulsory and one numeric compulsory and accepts minimum 6 characters and max 15 characters irrespective of the order and case.It doesnt accept special characters
Matches
1DAV100
Non-Matches
asdfgh,asd.123 etc.,
Author Rating: The rating for this expression. david paul
Title Test Details User Name and Password
Expression
^(?<username>[a-z][\w.-]*)(?::(?<pwd>[\w.-]*))$
Description
accepts: 1. user name - starting with a letter - [a-z, 0-9, _, - ]* 2. : delimiter 3. password with any characters
Matches
user:anything4654sASD:454!@#$ | user-name:anything4654sASD:454!@#$ | user.name:anything4654sASD:454!@#$
Non-Matches
user name:anything4654sASD:454!@#$ | username | user!name:anything4654sASD454
Author Rating: Not yet rated. ASM™
Title Test Details Password Validation
Expression
^(?!.*(.)\1{3})((?=.*[\d])(?=.*[A-Za-z])|(?=.*[^\w\d\s])(?=.*[A-Za-z])).{8,20}$
Description
8-20 chars; at least one alpha; at least one number or special char; up to 3 repeating chars, no more
Matches
8charact, twentychar$acters123, 1repppeats
Non-Matches
6chars, twentychar$acters123456, 1reppppeat, nonummmbers
Author Rating: The rating for this expression. Terry Palmer
Title Test Details Strong Password
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,20}$
Description
Password between 8 and 20 characters; must contain at least one lowercase letter, one uppercase letter, one numeric digit, and one special character, but cannot contain whitespace.
Matches
Abc1234# | abcD$123 | A1b2&C3!
Non-Matches
abcd1234 | AbCd!@#$ | Abc 123#
Author Rating: The rating for this expression. Jay French
Title Test Details Password Strength
Expression
^((?=.{8,32}$)(?=.*\p{Lu})(?=.*\p{Ll})((?=.*\p{N})|(?=.*\p{P}))(?!.*\s))
Description
This .NET Framework expression tests a submitted password for length, a capital and lower case letter, a number or punctuation character and no spaces.<br /> (?=.{8,32}$) tests for a minimum of 8 characters and maximum of 32. (?=.*\p{Lu}) tests for at least one upper case letter anywhere in the string. (?=.*\p{Ll}) tests for at least one lower case letter anywhere in the string. ((?=.*\p{N})|(?=.*\p{P})) tests that there is at least one number OR one punctuation mark. (?!.*\s) tests that there are no spaces in the string.
Matches
Pass-Word | paSS1woRD | p4SSword
Non-Matches
PassWord | pass1RD | p4ssword
Author Rating: The rating for this expression. Jay A. Moritz
Title Test Details Strong Password Validation
Expression
^(?=.*[!@#$%^&*()\-_=+`~\[\]{}?|])(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{8,20}$
Description
This should require all of the following: An uppercase letter, a lowercase letter, a number and a special character from the provided list. Lastly, it needs to be between 8 and 20 characters long. A lot of expressions I've found here don't require all four, this should. I'm pretty new at regex though, so I hope that other people will help strengthen this expression. When testing on this site, make sure you have the Case Insensitive checkbox turned off.
Matches
p2sSw@rd | p2sSw@rd#l0ngEr | abc#$%GH1
Non-Matches
p2ssw@rd | p2sSw@rd#l0ngErThisIs2l0ng | abc123DEF
Author Rating: Not yet rated. John Pirkey
Title Test Details Find URL in text
Expression
/((https?|ftp)\:\/\/)?([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?(([a-z0-9-.]*)\.([a-z]{2,6}))|(([0-9]{1,3}\.){3}[0-9]{1,3})(\:[0-9]{2,5})?(\/([a-z0-9+\$_-]\.?)+)*\/?(\?[a-z+&\$_.-][a-z0-9;:@&%=+\/\$_.-]*)?(#[a-z_.-][a-z0-9+\$_.-]*)?/i
Description
This could be most complete and readable URL-finder regex. I built it from several good examples. Works with PHP preg_match_all(). Finds whatever string that resembles a URL with scheme://, user:password, subdomains.domain (with up to 6 chars top-domain) or IP address xxx.xxx.xxx.xxx, :port, /file/path/, ?request, and #anchor
Matches
google.com
Non-Matches
file://hello.txt
Author Rating: The rating for this expression. Marco Alvarado
Title Test Details Password with n numbers of digits, upper case character and special character.
Expression
(?=^.{12,25}$)(?=(?:.*?\d){2})(?=.*[a-z])(?=(?:.*?[A-Z]){2})(?=(?:.*?[!@#$%*()_+^&}{:;?.]){2})(?!.*\s)[0-9a-zA-Z!@#$%*()_+^&]*$
Description
User can specify n numbers of digits, upper case character and special character. In this example, we will use two special characters, digits and upper case in the password. Explanation: (?=^.{12,25}$) -- password length range from 12 to 25 (?=(?:.*?[!@#$%*()_+^&}{:;?.]){2}) -- at least 2 special characters (!@#$%*()_+^&}{:;?.}) (?=(?:.*?\d){2}) -- at least 2 digits (?=.*[a-z]) -- characters a-z (?=.{2,}[A-Z]) -- at least 2 upper case characters
Matches
PassW0rd@1*3, pAsSword@#123
Non-Matches
PassW0rd@1*, PassW0rd@1*3', PassW0rd@1 3p
Author Rating: Not yet rated. Bryian Tan
Title Test Details strong password limited character set
Expression
(?=.*\d)(?=.*[a-z])(?=.*[A-Z])^[\w!@$#.+-]{8,64}$
Description
8 to 64 characters. Spaces not allowed. Require at least one UPPER, one lower and one number. Then limit the input to a-z A-Z 0-9 _-+.$ # @ and !
Matches
LongEr1 !1LongeR ++++Aa1+++
Non-Matches
sHort! all-lower allLetters
Author Rating: Not yet rated. V A R
Title Test Details Password Validator
Expression
^((\D*[a-z]\D*[A-Z]\D*)|(\D*[A-Z]\D*[a-z]\D*)|(\D*\W\D*[a-z])|(\D*\W\D*[A-Z])|(\D*[a-z]\D*\W)|(\D*[A-Z]\D*\W))$
Description
Password validation with any two of combinations: [A-Z],[a-z],Punctuation Symbols with minimum user requirement without digits.If digit is added , it wont validate.As per requirement add '.{n,m}' without quotes before the $ sign in the expression.
Matches
Sara,sA,%g,&HHJ,G(*,hgh%
Non-Matches
Sa2,hjH7,7&h
Author Rating: The rating for this expression. Saravana
Title Test Details Generic Credentials
Expression
username=(.*)&password=(.*)
Description
Matches all packets that have the string username and password
Matches
iphoone511@hotmail.con
Non-Matches
iphone511
Author Rating: Not yet rated. Iphone511
Title Test Details Simple password match
Expression
^\S{1}(?:.){4,}\S$
Description
Check if a string contains at least 6 characters. Can not end or start with whitespace but can contain any other. PCRE optimized with none-capturing parentheses.
Matches
4 good p@ssW0rd? | password
Non-Matches
pass | word | 12345
Author Rating: Not yet rated. Emil
Title Test Details Valid Password
Expression
^[a-zA-Z0-9!@#$&_]+$
Description
Test the password
Matches
!@#$&123aqfASD | adAs!@12
Non-Matches
<space>!@#123ASDqwe | !@#ADF<space> | <space>!@#$12<space>3Qwss<space>
Author Rating: Not yet rated. Vinay Joshi
Title Test Details Password
Expression
^(?=.*[A-Z])(?=.*[a-z])(?=.*[\d])(?=.*[-\]\\`~!@#$%^&*()_=+}{[|'";:><,.?/ ]).{8,50}$
Description
Min 8 Max 50 chars /r/n Min 1 upper Min 1 number Min 1 special char from the list (there is a space at the end of the list. basically every special char from a US keyboard layout) Be careful when copy and paste from here. The entities will probably get converted.
Matches
Sco0ter~Wheels ~as$wO0Ed1
Non-Matches
Sco0terWheels PassW0rd
Author Rating: Not yet rated. Derek
Title Test Details Strong password
Expression
((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W_]).{6,50})
Description
Password requires at least 1 lower case character, 1 upper case character, 1 number, 1 special character and must be at least 6 characters and at most 50
Matches
Abcde1! | Abcde1$ | ABCDe1!
Non-Matches
abcde1! | ABCDE1! | abcdef
Author Rating: Not yet rated. Jonathan Baggaley
Title Test Details Strong Password
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.*\s).{8,}$
Description
Password expresion that requires one lower case letter, one upper case letter, one digit, one non-word character, 8>= length and no spaces.
Matches
aA@1aaaa | aA@1aaaaasfljs;lkfe
Non-Matches
aA@1a aaa | aA1aaaaaaaa | 12345678
Author Rating: Not yet rated. Ankhaa
Title Test Details Password
Expression
(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,8})$
Description
It Required Input of a combination of Numbers & Strings also length must be greater than 6...
Matches
123456s | abc123 | 123abc
Non-Matches
1234567 | +_()'675 | abcdefgh
Author Rating: Not yet rated. Mustafa Iqbal
Title Test Details Password regex
Expression
^(?=.*\d)\w+$
Description
Any alphabets are allowed.Passsword must contain atleast 1 digit and none of the characters are allowed.
Matches
password1
Non-Matches
password1@
Author Rating: Not yet rated. Swetha
Title Test Details Mundivox pass e login
Expression
actionID=&url=&load_frameset=1&autologin=0&anchor_string=&server_key=imap&imapuser=(.*)&pass=(.*)&new_lang=pt_BR&select_view=imp
Description
Gives webmail website acount, login and password. Do not work for mobile browsers.
Matches
Mail|loging|pass|worksinanypcormac
Non-Matches
Mobile|dosent|work
Author Rating: Not yet rated. Tristriaauf
Title Test Details Split URL authority
Expression
^(?!.*\n.*)(?:([^:]*)(?::(.*?))?@)?([^:]*)(?::([^:]*?))?$
Description
For the purposes of this regex, the authority/domain of a URL comes after the scheme + "//", and includes an optional username, password, and port. This is a perl-compatible regex (PCRE) that captures the various parts of the a domain, including the (optional) username, (optional) password, host, and (optional) port. The capturing groups are as follows: 1 = username, 2 = password, 3 = host, 4 = post. See the source link for the logic behind parsing the domain. NOTE: This is NOT intended to parse entire URLs, you will need a separate regular expression to extract the domain. Technically, only strings with newline characters are non-matches. The rest yield empty capturing groups. ANOTHER NOTE: This does NOT verify that only ascii characters are used in domain names. It is intended to extract pieces from domains that should already be valid.
Matches
user@example.com:80 | user:password@example.com:8080 | site.com:8080 | site.com | 192.168.1.1:443 | usern@me@site.com | usern@me:pass@site.com
Non-Matches
\n | : | @
Author Rating: Not yet rated. Tyler Durkota
   Displaying page 1 of 1 pages; Items 1 to 77

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