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 8 of 9 pages; Items 141 to 160
Title Test Details Pattern Title
Expression
([A-Zäöü0-9\/][^a-z\:\,\(\)]*[A-Zäöü0-9])($|[\.\:\,\;\)\-\ \+]|s\b)
Description
Used to dynamically find acronyms in a sentence. The first pair of brackets gets the acronym, the second gets the text after the acronym.
Matches
ASN.1 | REGEXP
Non-Matches
***
Author Rating: Not yet rated. Eric Lewis
Title Test Details Resale License Number (CA)
Expression
^((([sS][r-tR-Tx-zX-Z])\s*([sx-zSX-Z])?\s*([a-zA-Z]{2,3}))?\s*(\d\d)\s*-?\s*(\d{6,7}))$
Description
California Resale License number validator. Validates Letters and Numbers or Number only. Letters: First 2 letters can be SR, SS, ST , SX, SY, SZ (TAT Code) Next optional letter can be S,X,Y,Z. Next letters must be a minimum of two and a maximum of 3 (District Code). Numbers: Can be 8-9 numbers. Numbers can be delimited with a hypen or spaces after the first 2 numbers. Note: I use () to extract the information I want for use in other scripts.
Matches
SR BH 97-578613 | 97578613 | SRXBH97578613
Non-Matches
RR BH 97-578613 | 9757861 | SRAABH 97-578613
Author Rating: Not yet rated. Dean Dal Bozzo
Title Test Details Pattern Title
Expression
(?s)(?:\e\[(?:(\d+);?)*([A-Za-z])(.*?))(?=\e\[|\z)
Description
This expression will match all of the commands(escape codes) used in ANSI files. These are what were used to create the colors/blocks on BBS's for those of us that once dialed into them. http://www.wikipedia.org/wiki/ANSI_escape_code has a reference for ANSI escape codes. http://idledreams.net/lordscarlet/posts/153.aspx shows an example of the engine I have created surrounding the expression
Matches
Hello | Test | 
Non-Matches
abc
Author Rating: Not yet rated. Doug Moore
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 Pattern Title
Expression
^(s-|S-){0,1}[0-9]{3}\s?[0-9]{2}$
Description
Validates swedish zipcodes (postnr) with or without space between groups. With leading s- or not. Can be disconnected by removing ''(s-|S-){0,1}''.
Matches
12345 | 932 68 | S-621 46
Non-Matches
5367 | 425611 | 31 545
Author Rating: Not yet rated. Tommy Ullberg
Title Test Details Font Sizes
Expression
^\d+\x20*([pP][xXtT])?$
Description
It can be used to validate Font Sizes. Thanks to Gideon Engelberth for the shorter version of my original expression.
Matches
1px | 100 PT | 20Px
Non-Matches
1abc | px | 1 sdfs
Author Rating: Not yet rated. Vincent Faller
Title Test Details Pattern Title
Expression
^[A-Za-z]{2}[0-9]{6}[A-Za-z]{1}$
Description
UK National Insurance Number validation. Especially useful to validate through clientside/server side script on a website.
Matches
SP939393H | PX123456D | SW355667G
Non-Matches
12SP9393H | S3P93930D | 11223344SP00ddSS
Author Rating: Not yet rated. Santosh Potadar
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 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
^(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
^[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}$
Description
GUID Tester. It tests SQL Server GUIDs, which are alphanumeric characters grouped 8-4-4-4-12 (with the dashes). Make sure they don't have the brackets around them before you check them and have fun!
Matches
4D28C5AD-6482-41CD-B84E-4573F384BB5C | B1E1282C-A35C-4D5A-BF8B-7A3A51D9E388 | 91036A4A-A0F4-43F0-8CD
Non-Matches
{B1E1282C-A35C-4D3A-BF8B-7A3A51D9E388} | AAAAAAAAAAAAAAAAA | B;E1282C-A35C-4D3A-BF8B-7A3A51D9E38
Author Rating: Not yet rated. James Bray
Title Test Details Pattern Title
Expression
\b(\w+)\s+\1\b
Description
Uses backreferences and word boundaries to match repeated words seperated by whitespace without matching a word with the same ending as the next words beginning.
Matches
Tell the the preacher | some some | hubba hubba
Non-Matches
once an annual report | mandate dated submissions | Hubba hubba
Author Rating: Not yet rated. Sean Carley
Title Test Details Pattern Title
Expression
^[0-9]{4}\s{0,1}[a-zA-Z]{2}$
Description
Regular expression to evaluate dutch zipcodes. This is an updated version of Roland Mensenkamp.
Matches
2034AK | 2034 AK | 2034 ak
Non-Matches
2034 AK | 321321 AKSSAA
Author Rating: Not yet rated. Jon van Leuven
Title Test Details Pattern Title
Expression
(?-i:\b\p{Ll}+\b)
Description
This pattern matches lower-case letters
Matches
test | holã | p
Non-Matches
Test | 123 | ?S
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
\p{Sm}
Description
Math Symbols. NOTE: the second examples of match and non-match are not the same. The non-match is the keyboard dash. The match is the unicode minus sign.
Matches
+= | - | ± v =
Non-Matches
1 | - | 1x2
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
([0-1][0-9]|2[0-3]):[0-5][0-9]
Description
Validate an hour entry to be between 00:00 and 23:59
Matches
00:00 | 13:59 | 23:59
Non-Matches
24:00 | 23:60
Author Rating: Not yet rated. Steve Charland
Title Test Details Pattern Title
Expression
^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$
Description
Regular Expression that validate phone in France.
Matches
01 46 70 89 12 | 01-46-70-89-12 | 0146708912
Non-Matches
01-46708912 | 01 46708912 | +33235256677
Author Rating: Not yet rated. Bertrand Perrin
Title Test Details Pattern Title
Expression
(?-i:\b\p{Lu}+\b)
Description
Matches uppercase unicode alpha characters
Matches
ABCDE | ??G?? | Æ
Non-Matches
abc | aß?d | æ
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
\p{IsBasicLatin}
Description
Matches any character is the Basic Latin Unicode Range \U0000-U007F (Ascii 0-127) I've blogged about this and other expressions here http://blogs.regexadvice.com/mash/archive/2004/04/17/988.aspx
Matches
ABCxyz | 123 | +-=
Non-Matches
? | ? | ?
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
\p{N}
Description
Matches numbers. Note: the second match (?) and the second non-match (IV) are not the same. I cover this in more detail here http://blogs.regexadvice.com/mash/archive/2004/04/17/988.aspx
Matches
123890 | ? | ½
Non-Matches
AAABB | IV | Ten
Author Rating: Not yet rated. Michael Ash
Change page:   |    Displaying page 8 of 9 pages; Items 141 to 160

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