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: 102 regular expressions found.

Change page:   |    Displaying page 1 of 6 pages; Items 1 to 20
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: Not yet rated. 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: The rating for this expression. 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. [email protected]
Matches
"my string" | "a string with ' in it" | ' comment
Non-Matches
asd "
Author Rating: The rating for this expression. 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 ([email protected]) . 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 protected] | My Name | asdf12df
Non-Matches
‘,\*&$<> | 1001' string
Author Rating: Not yet rated. 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 | [email protected]
Non-Matches
<>'&amp&lt&rt*^%$
Author Rating: The rating for this expression. 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: The rating for this expression. 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: The rating for this expression. 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
Change page:   |    Displaying page 1 of 6 pages; Items 1 to 20

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