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 9 of 9 pages; Items 161 to 173
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9\s.\-]+$
Description
ANY alphanumeric string with spaces, commas, dashes.
Matches
2222 Mock St. | 1 A St. | 555-1212
Non-Matches
[A Street] | (3 A St.) | {34 C Ave.}
Author Rating: Not yet rated. Mart Maasikas
Title Test Details Pattern Title
Expression
[1-2][0|9][0-9]{2}[0-1][0-9][0-3][0-9][-][0-9]{4}
Description
Swedish person number. Don't work on persons older then 100 years, but they are so few that it shouldn't be a problem. Easy to fix, but I choose not to accept oldies...
Matches
19740609-7845 | 19811116-7845 | 20010913-7598
Non-Matches
21003612-9999 | 18790505-4545 | 19740641-5559
Author Rating: Not yet rated. Tomas Axelsson
Title Test Details A string of any US ASCII letters
Expression
^[a-zA-Z]+$
Description
Matches any string of only upper- and lower- case letters (no spaces).
Matches
abc | ABC | aBcDeF
Non-Matches
abc123 | mr. | a word
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
(^.+\|+[A-Za-z])
Description
Anti-Spam/Spam stopper: Detects all words with the character "|" instead of an "l" or "1"
Matches
| comp|eted | fu|l-sized | annua|ly
Non-Matches
www.fireflyfx.net | www.trustmusic.nl
Author Rating: Not yet rated. Louis Ostendorf
Title Test Details Pattern Title
Expression
^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
Description
Matches UK postcodes according to the following rules 1. LN NLL eg N1 1AA 2. LLN NLL eg SW4 0QL 3. LNN NLL eg M23 4PJ 4. LLNN NLL eg WS14 0JT 5. LLNL NLL eg SW1N 4TB 6. LNL NLL eg W1C 8LQ Thanks to Simon Bell for informing me of LNL NLL rule for postcodes which I had omitted in an earlier version.
Matches
G1 1AA | EH10 2QQ | SW1 1ZZ
Non-Matches
G111 1AA | X10 WW | DDD 5WW
Author Rating: Not yet rated. Dave Sparks
Title Test Details Pattern Title
Expression
^(?n:(?!-[\d\,]*K) (?!-((\d{1,3},)*((([3-9]\d\d|2[89]\d|27[4-9])\xB0C)|(((4[6-9]|[5-9]\d)\d)\xB0F)))) -?\d{1,3}(,\d{3})*(\xB0[CF]|K) )$
Description
Temperature scale. From ABSOLUTE ZERO up. Can use the Fahrenheit, Celsius or Kelvin Scale. The Degree symbol is required for Fahrenheit and Celsius. Numbers over 1,000 must be comma delimited.
Matches
32°F | -10°C | 4,000K
Non-Matches
-460°F | 1000°C | -1°K
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
([2-9JQKA]|10)([\u2660\u2663\u2665\u2666])
Description
Matches each card in the deck of standard playing cards, not including the Jokers
Matches
A?A?A?A? | 2?3?4?5? | 10?J?Q?K?
Non-Matches
1? | 11? | R?
Author Rating: Not yet rated. Michael Ash
Title Test Details Alphanumeric
Expression
^[a-zA-Z0-9]+$
Description
Matches any alphanumeric string (no spaces).
Matches
10a | ABC | A3fg
Non-Matches
45.3 | this or that | $23
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
^(user=([a-z0-9]+,)*(([a-z0-9]+){1});)?(group=([a-z0-9]+,)*(([a-z0-9]+){1});)?(level=[0-9]+;)?$
Description
This re was used for a security routine. The format is: [user=name1,name2,...,nameN;][group=group1,group2,...,groupN;][level=number;] Each component is optional, but they must appear the in order listed if applicable.
Matches
user=foo,bar,quux;group=manager,admin;level=100; | group=nobody;level=24;
Non-Matches
user=foo | blahh
Author Rating: Not yet rated. Michael Scovetta
Title Test Details Pattern Title
Expression
^([0-9]{6}[\s\-]{1}[0-9]{12}|[0-9]{18})$
Description
This regular expression matches 'Switch' card numbers - a payment method used extensively in the UK.
Matches
000000 000000000000 | 000000-000000000000 | 000000000000000000
Non-Matches
000000_000000000000
Author Rating: Not yet rated. Scott Frampton
Title Test Details Simple Microsoft Product Key
Expression
^[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}$
Description
Simple Microsoft product key check.
Matches
12345-12345-12345-12345-12345 | ABCDE-ABCDE-ABCDE-ABCDE-ABCDE | AB5DE-AB5DE-AB5DE-AB5DE-AB5DE
Non-Matches
12345-123-123456-12345 | ABC-ABCDEF-ABCDE-ABCDE | 12AB5-ABC-12AB567-12AB5
Author Rating: Not yet rated. Amos Hurd
Title Test Details Pattern Title
Expression
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}
Description
US Phone Number -- doesn't check to see if first digit is legal (not a 0 or 1).
Matches
(123) 456-7890 | 123-456-7890
Non-Matches
1234567890
Author Rating: Not yet rated. Steven Smith
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
Change page:   |    Displaying page 9 of 9 pages; Items 161 to 173

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