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

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

173 regular expressions found in this category!

Expressions in category: Misc

Change page:   |    Displaying page 1 of 9 pages; Items 1 to 20
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
^\d{3}\s?\d{3}$
Description
This can be used to match indian style pincodes / postal codes used by the indian postal departments which are 6 digits long and may have space after the 3rd digit
Matches
400 099 | 400099 | 400050
Non-Matches
2345678 | 12345 | asdf
Author Rating: The rating for this expression. anup kallingal
Title Test Details Pattern Title
Expression
^\d{5}(-\d{4})?$
Description
Matches standard 5 digit US Zip Codes, or the US ZIP + 4 Standard.
Matches
48222 | 48222-1746
Non-Matches
4632 | Blake | 37333-32
Author Rating: The rating for this expression. Blake Facey
Title Test Details Pattern Title
Expression
^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$
Description
This matches an IP address, putting each number in its own group that can be retrieved by number. If you do not care about capturing the numbers, then you can make this shorter by putting everything after ^ until immediately after the first \. in a group ( ) with a {3} after it. Then put the number matching regex in once more. It only permits numbers in the range 0-255.
Matches
0.0.0.0 | 255.255.255.02 | 192.168.0.136
Non-Matches
256.1.3.4 | 023.44.33.22 | 10.57.98.23.
Author Rating: The rating for this expression. Andrew Polshaw
Title Test Details Pattern Title
Expression
^(1|2|3)((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)(\d{5})$
Description
This pattern matches a Valid Civil ID Number in Kuwait.
Matches
175123112345 | 279020412345
Non-Matches
479020412345 | 275043112345
Author Rating: The rating for this expression. Ronnel Santiago
Title Test Details Pattern Title
Expression
^[0-9](\.[0-9]+)?$
Description
matches non-negative decimal floating points numbers less than 10
Matches
1.2345 | 0.00001 | 7
Non-Matches
12.2 | 1.10.1 | 15.98
Author Rating: The rating for this expression. Snikwad Kcirtap
Title Test Details Pattern Title
Expression
(?<Sedol>[B-Db-dF-Hf-hJ-Nj-nP-Tp-tV-Xv-xYyZz\d]{6}\d)
Description
This regular expression accepts SEDOL (Stock Exchange Daily Official List number, a code used by the London Stock Exchange to identify foreign stocks). To be more exact - it accepts POTENTIAL SEDOL's, since the last, 7th digit of a sedol is a kind of check-sum digit and this reg-ex doesn’t check’s its correctness. Also, despite following to the formal SEDOL definition - its first character should be a consonant character – there are actual sedol’s with the first character, which is a number (e.g. 0067340 for BAA) and they are accepted by this reg-ex.
Matches
0067340 | B01HL06 | 4155586
Non-Matches
12345 | 34A56B7 | 456VGHY
Author Rating: The rating for this expression. Alexander Pinsker
Title Test Details Pattern Title
Expression
^\(\d{1,2}(\s\d{1,2}){1,2}\)\s(\d{1,2}(\s\d{1,2}){1,2})((-(\d{1,4})){0,1})$
Description
Meets german norm-standard: DIN 5008: 1996-05 for telephone numbers
Matches
(0 34 56) 34 56 67 | (03 45) 5 67 67 | (0 45) 2 33 45-45
Non-Matches
(2345) 34 34 | (0 56) 456 456 | (3 45) 2 34-45678
Author Rating: The rating for this expression. Gerald Martin
Title Test Details Pattern Title
Expression
^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$
Description
Person's name (first, last, or both) in any letter case. Although not perfect, this expression will filter out many incorrect name formats (especially numerics and invalid special characters).
Matches
T.F. Johnson | John O'Neil | Mary-Kate Johnson
Non-Matches
sam_johnson | Joe--Bob Jones | dfjsd0rd
Author Rating: The rating for this expression. Robert Dugre
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 &amp;lt;&amp;gt; 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;&amp;gt;'&amp;amp;amp&amp;amp;lt&amp;amp;rt*^%$
Author Rating: The rating for this expression. Cal Guisti
Title Test Details Pattern Title
Expression
^[0-9]{2}[-][0-9]{2}[-][0-9]{2}$
Description
Validates a UK Bank Sort code
Matches
09-01-29 | 05-06-25
Non-Matches
090125
Author Rating: The rating for this expression. Richard Slade
Title Test Details Pattern Title
Expression
^(\d{5}((|-)-\d{4})?)|([A-Za-z]\d[A-Za-z][\s\.\-]?(|-)\d[A-Za-z]\d)|[A-Za-z]{1,2}\d{1,2}[A-Za-z]? \d[A-Za-z]{2}$
Description
Allows Canadian, American and UK postal/zip codes. Allowing hyphens, periods, or spaces to separate.
Matches
N9B.1Y8 | 90210-1234 | NE21 6EQ
Non-Matches
NN8 Y83
Author Rating: The rating for this expression. Russell Anderson
Title Test Details Pattern Title
Expression
(^(4|5)\d{3}-?\d{4}-?\d{4}-?\d{4}|(4|5)\d{15})|(^(6011)-?\d{4}-?\d{4}-?\d{4}|(6011)-?\d{12})|(^((3\d{3}))-\d{6}-\d{5}|^((3\d{14})))
Description
This provides an expression to calidate the four major credit cards. It can be easily broken up to use for a specific type of card. It does not validate the number being a potential real number, only in the correct format.
Matches
4111-1234-1234-1234 | 6011123412341234 | 3711-123456-12345
Non-Matches
1234567890123456 | 4111-123-1234-1234 | 412-1234-1234-1234
Author Rating: The rating for this expression. Chris Love
Title Test Details Pattern Title
Expression
(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)
Description
Regular expression to evaluate dutch-style phone numbers. Possible example prefixes: +31, +31(0), (+31)(0), 0, 0031 followed by 9 numbers (which can contain a space or -).
Matches
+31235256677 | +31(0)235256677 | 023-5256677
Non-Matches
+3123525667788999 | 3123525667788 | 232-2566778
Author Rating: The rating for this expression. Jon van Leuven
Title Test Details Pattern Title
Expression
^[a-zA-Z][0-9][a-zA-Z]\s?[0-9][a-zA-Z][0-9]$
Description
Match Canadia Zip Code. You can have a space in the middle Like T2P 3C7, or no space like T2P3C7
Matches
T2p 3c7 | T3P3c7 | T2P 3C7
Non-Matches
123456 | 3C7T2P | 11T21RWW
Author Rating: The rating for this expression. Qing Jiang
Title Test Details Pattern Title
Expression
^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
Description
A regular expression to match phone numbers, allowing for an international dialing code at the start and hyphenation and spaces that are sometimes entered.
Matches
(+44)(0)20-12341234 | 02012341234 | +44 (0) 1234-1234
Non-Matches
(44+)020-12341234 | 12341234(+020)
Author Rating: The rating for this expression. James Burton
Title Test Details Pattern Title
Expression
^([a-z0-9]{32})$
Description
Matches a md5 hash, simple yet powerful
Matches
790d2cf6ada1937726c17f1ef41ab125
Non-Matches
790D2CF6ADA1937726C17F1EF41AB125 | 790d2cf6ada1937726c17f1ef41ab125f6k
Author Rating: The rating for this expression. Thijs Wijnmaalen
Title Test Details Pattern Title
Expression
^([0-1])*$
Description
Expression validating a Binary string of any length
Matches
10101000 | 01010000 | 100000001
Non-Matches
01000200 | 00021000 | e10000000
Author Rating: The rating for this expression. Cliff Wagner
Title Test Details Pattern Title
Expression
(?:\d|I{1,3})?\s?\w{2,}\.?\s*\d{1,}\:\d{1,}-?,?\d{0,2}(?:,\d{0,2}){0,2}
Description
This RE validates standard Bible verse notation.
Matches
Genesis 3:3-4,6 | II Sam 2:11,2 | 2 Tim 3:16
Non-Matches
Genesis chap 3, verse 3 | 2nd Samuel 2
Author Rating: The rating for this expression. Scott Kahler
Title Test Details Pattern Title
Expression
^\d{3}-\d{7}[0-6]{1}$
Description
Airway bill no that allows only the format 999-99999998 and does not allow the last digit to be 7,8,9.
Matches
999-99999995 | 123-47859683 | 156-78965422
Non-Matches
123-47859689 | 9999999999 | 9588-58964
Author Rating: The rating for this expression. DOZENROSES T
Change page:   |    Displaying page 1 of 9 pages; Items 1 to 20

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