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
^0(5[012345678]|6[47]){1}(\-)?[^0\D]{1}\d{5}$
Description
Regular Expression that validate Cellular phone in israel.
Matches
050-346634 | 058633633 | 064-228226
Non-Matches
059-336622 | 064-022663 | 0545454545
Author Rating: Not yet rated. Al Val
Title Test Details Pattern Title
Expression
(\d*)'*-*(\d*)/*(\d*)"
Description
This regular expression is for parsing feet and inches measurements.
Matches
5'-3/16" | 1'-2" | 5/16"
Non-Matches
1 3/16
Author Rating: Not yet rated. Felix Osegueda
Title Test Details Pattern Title
Expression
^(\d{5}-\d{4}|\d{5})$
Description
this works with ASP.net regular expression valiadtors, ecma script compliant
Matches
12345 | 12345-1234
Non-Matches
12345-12345 | 123 | 12345-abcd
Author Rating: Not yet rated. lynn eriksen
Title Test Details Pattern Title
Expression
^\{?[a-fA-F\d]{8}-([a-fA-F\d]{4}-){3}[a-fA-F\d]{12}\}?$
Description
Validates a GUID with and without brackets. 8,4,4,4,12 hex characters seperated by dashes.
Matches
{e02ff0e4-00ad-090A-c030-0d00a0008ba0} | e02ff0e4-00ad-090A-c030-0d00a0008ba0
Non-Matches
0xe02ff0e400ad090Ac0300d00a0008ba0
Author Rating: Not yet rated. Lewis Moten
Title Test Details Pattern Title
Expression
[A-Z][a-z]+
Description
This expression was developed to match the Title cased words within a Camel cased variable name. So it will match 'First' and 'Name' within 'strFirstName'.
Matches
strFirstName | intAgeInYears | Where the Wild Things Are
Non-Matches
123 | abc | this has no caps in it
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
^([1-9]|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$
Description
This validates a number between 1 and 255. Could be modified to IP, or just to verify a number in a range.
Matches
1 | 108 | 255
Non-Matches
01 | 256
Author Rating: Not yet rated. K Thompson
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9\s.\-_']+$
Description
Alphanumeric, hyphen apostrophe, comma dash spaces
Matches
dony d'gsa
Non-Matches
^[a-zA-Z0-9\s.\-_']+$
Author Rating: Not yet rated. Sonal Bordia
Title Test Details Pattern Title
Expression
(^\(\)$|^\(((\([0-9]+,(\((\([0-9]+,[0-9]+,[0-9]+\),)*(\([0-9]+,[0-9]+,[0-9]+\)){1}\))+\),)*(\([0-9]+,(\((\([0-9]+,[0-9]+,[0-9]+\),)*(\([0-9]+,[0-9]+,[0-9]+\)){1}\))+\)){1}\)))$
Description
This checks for the specific syntax ((A,((b,c,d),(e,f,g))), ..). No limit on number of occurances.
Matches
((24,((1,2,3),(3,4,5)))) | ((1,((2,3,4),(4,5,6),(96,34,26))),(12,((1,3,4),(4,5,6),(7,8,9)))) | ()
Non-Matches
(24,((1,2,3),(3,4,5))) | ( ) | ((23,(12,3,4),(4,5,6)))
Author Rating: Not yet rated. Rambabu Tummala
Title Test Details Pattern Title
Expression
^([a-zA-Z0-9!@#$%^&*()-_=+;:'"|~`<>?/{}]{1,5})$
Description
This Regular expression validates a string that contains all printable characters with a minimum length of 1 and maximum length of 5. Obviously the min and max can be changed to meet the users needs. ^([a-zA-Z0-9!@#$%^&*()-_=+;:'"|~`<>?/{}]{1,5})$ This is the string, I keep getting &lt and other characters when I save it.
Matches
ilove | $%*!_ | it
Non-Matches
123456 | This is great
Author Rating: Not yet rated. Michael Matusiewicz
Title Test Details Pattern Title
Expression
^(\{|\[|\().+(\}|\]|\)).+$
Description
Matches "clan" nicks/names.
Matches
{CLaN}nick | [Clan]Nick | (Clan)Nick
Non-Matches
Nick
Author Rating: Not yet rated. Jag fire
Title Test Details Pattern Title
Expression
^(((25[0-5]|2[0-4][0-9]|19[0-1]|19[3-9]|18[0-9]|17[0-1]|17[3-9]|1[3-6][0-9]|12[8-9]|12[0-6]|1[0-1][0-9]|1[1-9]|[2-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9]))|(192\.(25[0-5]|2[0-4][0-9]|16[0-7]|169|1[0-5][0-9]|1[7-9][0-9]|[1-9][0-9]|[0-9]))|(172\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|1[0-5]|3[2-9]|[4-9][0-9]|[0-9])))\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$
Description
Updated to exclude 127/8
Matches
66.129.71.120 | 207.46.230.218 | 64.58.76.225
Non-Matches
127.0.0.1 | 192.168.0.1 | my ip address
Author Rating: Not yet rated. Todd Krabach
Title Test Details Pattern Title
Expression
^([A-HJ-TP-Z]{1}\d{4}[A-Z]{3}|[a-z]{1}\d{4}[a-hj-tp-z]{3})$
Description
Codigos Postales Argentinos (CPA) This expression defines the new zip code format for Argentina.
Matches
C1406HHA | A4126AAB | c1406hha
Non-Matches
c1406HHA | 4126 | C1406hha
Author Rating: Not yet rated. Gabriel Garcia
Title Test Details Pattern Title
Expression
^[0-9]{4}\s{0,2}[a-zA-z]{2}$
Description
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters.
Matches
4006 AB | 4006ab | 4006 AB
Non-Matches
4006.ab | 4006_ab | 4006/ab
Author Rating: Not yet rated. martijn db
Title Test Details Text Extension
Expression
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ]*))+\.(txt|TXT)$
Description
This RE validates a path/file of type txt (text file) This RE can be used as a filter on certain file types, while insuring the entire string is a fully qualified path and file. The filter value can be changed or added to as you need
Matches
c:\file.txt | c:\folder\sub folder\file.txt | \\network\folder\file.txt
Non-Matches
C: | C:\file.xls | folder.txt
Author Rating: Not yet rated. Michael Ash
Title Test Details Pattern Title
Expression
<[iI][mM][gG]([^>]*[^/>])
Description
simple little RegExp to get the IMG tag from HTML
Matches
<img src="abc.jpg"> | <img src="abc.jpg"/> | <ImG src="abc.j
Non-Matches
none
Author Rating: Not yet rated. Asim Goheer
Title Test Details Pattern Title
Expression
\d{2}.?\d{3}.?\d{3}/?\d{4}-?\d{2}
Description
This regular expressions matches CNPJ number. CNPJ is a Registration Number of Brazilian Companies.
Matches
00.000.000/0000-00 | 00000000000000
Non-Matches
00-000-000-000-00 | AA.AAA.AAA/AAAA-AA
Author Rating: Not yet rated. Gabriel Fróes
Title Test Details Pattern Title
Expression
[^a-zA-Z \-]|( )|(\-\-)|(^\s*$)
Description
This match fileds contain only letters, a single hyphen, a single space, not empty
Matches
Steven Wang33 | Jing Xu
Non-Matches
Steven Wang | Jing Xu
Author Rating: Not yet rated. Jun Wang
Title Test Details Pattern Title
Expression
(^0[78][2347][0-9]{7})
Description
checks for valid South African cellular numbers
Matches
0834128458 | 0749526308
Non-Matches
0861212308 | 0892549851
Author Rating: Not yet rated. Zahir Jacobs
Title Test Details Pattern Title
Expression
^\(?082|083|084|072\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$
Description
I modified the existing phone number regex for another user looking to only allow 082, 083, 084, or 072 exchanges. Written by Jason Gaylord
Matches
082-131-5555 | 083-145-654 | 072 555 1212
Non-Matches
131-253-4564 | 5551212 | 800 555 1212
Author Rating: Not yet rated. Jason N. Gaylord
Title Test Details Pattern Title
Expression
(^[A-ZÀ-Ü]{1}[a-zà-ü']+\s[a-zA-Zà-üÀ-Ü]+((([\s\.'])|([a-zà-ü']+))|[a-zà-ü']+[a-zA-Zà-üÀ-Ü']+))
Description
Checks if has the first and the last name, and check the capital letters. Use with the RegExp.test method
Matches
Carlos Rodrigues | Cá de Laaa | Crras R. L. Rodrigües
Non-Matches
aaäA
Author Rating: Not yet rated. Carlos R. L. Rodrigues
Change page:   |    Displaying page 8 of 9 pages; Items 141 to 160

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