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 5 of 9 pages; Items 81 to 100
Title Test Details Pattern Title
Expression
^[a-zA-Z_][a-zA-Z0-9_]*$
Description
Matches variable names/identifier from C# (and most other languages)
Matches
VariableName | i | Some_Value_3
Non-Matches
3ID | Hello World
Author Rating: Not yet rated. Andrew Deren
Title Test Details Roman numerials
Expression
^(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?XX{0,2})|L)?((I[VX])|(V?(II{0,2}))|V)?))$
Description
This RE validates alpha characters that evaluate to Roman numerials, ranging from 1(I) - 3999(MMMCMXCIX). Not case sensitive.
Matches
III | xiv | MCMXCIX
Non-Matches
iiV | MCCM | XXXX
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
^(([+]\d{2}[ ][1-9]\d{0,2}[ ])|([0]\d{1,3}[-]))((\d{2}([ ]\d{2}){2})|(\d{3}([ ]\d{3})*([ ]\d{2})+))$
Description
Swedish phone numbers according to SIS standard
Matches
+46 8 123 456 78 | 08-123 456 78 | 0123-456 78
Non-Matches
+46 08-123 456 78 | 08 123 456 78 | 0123 456 78
Author Rating: Not yet rated. Martin Henningsson
Title Test Details Pattern Title
Expression
^\d{2}(\x2e)(\d{3})(-\d{3})?$
Description
Other expression to standard 5 digit Brazilian Postal Codes (CEP), or the CEP + 3 digits (distribution identifiers - suffix). The diference of the original one, is that the "." is mandatory.
Matches
12.345-678 | 23.345-123 | 99.999
Non-Matches
41222-222 | 3.444-233 | 43.324444
Author Rating: Not yet rated. Rafael Miranda
Title Test Details Pattern Title
Expression
^[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}$
Description
GUID Tester. This is a modification from the regular expression submitted by James Bray ([email protected]). It allows the use of mixed upper and lowercase letters in the GUID string.
Matches
BFDB4D31-3E35-4DAB-AFCA-5E6E5C8F61EA | BFDB4d31-3e35-4dab-afca-5e6e5c8f61ea
Non-Matches
qqqBFDB4D31-3E35-4DAB-AFCA-5E6E5C8F61EA | BFDB4D31-3E-4DAB-AFCA-5E6E5C8F61EA | BFDB4D31-3E35-4DAB-AF
Author Rating: Not yet rated. V. Lorz
Title Test Details Pattern Title
Expression
^(([a-z])+.)+[A-Z]([a-z])+$
Description
This matches Java class names such as "com.test.Test". It's being used within an XML Schema to validate classname as specified in XML documents.
Matches
com.test.Test | com.Test
Non-Matches
com.test.test | com.test.TEst | Com.test.Test
Author Rating: Not yet rated. Matt Biggin
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9]{1,20}$
Description
Matches
e3 | wee | w4
Non-Matches
-4
Author Rating: Not yet rated. eddie xia
Title Test Details Pattern Title
Expression
(NOT)?(\s*\(*)\s*(\w+)\s*(=|<>|<|>|LIKE|IN)\s*(\(([^\)]*)\)|'([^']*)'|(-?\d*\.?\d+))(\s*\)*\s*)(AND|OR)?
Description
Heres my sql clause parser regexp for recordset filtering. Does recursive query parsing all by its self. Only problem I cant figure is how to match comma separated lists of quoted strings. Tell me if you figure out how! The unicodes in the re was put in by the entry form please replace them with their ascii equivalents to use it.
Matches
Aeroplane LIKE 767 | Movie LIKE 'Star' AND NOT Movie LIKE 'Trek' | Number IN (1,2,3,4,5)
Non-Matches
Hello there | A=EXCELLENT OR | B!=POOR
Author Rating: Not yet rated. Joseph Warwick
Title Test Details Pattern Title
Expression
^(.|\n){0,16}$
Description
Limit Length - limit the length of a text box or other area to contain any character plus new line
Matches
shorter than max
Non-Matches
string longer than max
Author Rating: Not yet rated. David Yack
Title Test Details Pattern Title
Expression
^((4\d{3})|(5[1-5]\d{2}))(-?|\040?)(\d{4}(-?|\040?)){3}|^(3[4,7]\d{2})(-?|\040?)\d{6}(-?|\040?)\d{5}
Description
Credit card validator for AMEX, VISA, MasterCard only. Allows spaces, dashes, or no separator between digit groups according to the layout (4-6-5 for AMEX, 4-4-4-4 for Visa and Mastercard)
Matches
3711-078176-01234 | 4123 5123 6123 7123 | 5123412361237123
Non-Matches
3711-4123-5123-6112
Author Rating: Not yet rated. Rick Spiewak
Title Test Details Pattern Title
Expression
^\d{5}(-\d{3})?$
Description
Matches standard 5 digit Brazilian Postal Codes (CEP), or the CEP + 3 digits (distribution identifiers - suffix). For more info refer to: http://www.correios.com.br/servicos/cep/Estrutura_CEP.cfm (in portuguese).
Matches
13165-000 | 38175-000 | 81470-276
Non-Matches
13165-00 | 38175-abc | 81470-2763
Author Rating: Not yet rated. Carlos Nascimento
Title Test Details Pattern Title
Expression
(.*\.([wW][mM][aA])|([mM][pP][3])$)
Description
Matches a file name to be either a .wma or .mp3 file. This can be used to check file uploads to make sure they are of a certain type. Substitute letters where appropriate for specific file types. To include more simply add logical 'or' (|) operator and append.
Matches
thisfile.mp3 | [email protected]
Non-Matches
whatever.exe | somethingelse.mpa | thisagain.wm3
Author Rating: Not yet rated. Pete Samwel
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 AMD Athlon/Duron Codes (not Athlon 64)
Expression
^((A(((H[MX])|(M(P|SN))|(X((D[ACH])|(M[DS]))?)))?)|(K7(A)?)|(D(H[DLM])?))(\d{3,4})[ABD-G][CHJK-NPQT-Y][Q-TV][1-4][B-E]$
Description
Matches valid reference codes for AMD Athlon and Duron processors (not Athlon 64).
Matches
AXDA3200DKV4E | A1000AMT3B | D800AUT1B
Non-Matches
N/A
Author Rating: Not yet rated. Amos Hurd
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
(AUX|PRN|NUL|COM\d|LPT\d)+\s*$
Description
"Be careful when opening or creating files by using Scripting File System Object. If the filename is based on the user's input, the user might attempt to open a serial port or printer."
Matches
COM1 | AUX | LPT1
Non-Matches
image.jpg | index.html | readme.txt
Author Rating: Not yet rated. Chris Craft
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 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 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
Change page:   |    Displaying page 5 of 9 pages; Items 81 to 100

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