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
(\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
^(/w|/W|[^<>+?$%{}&])+$
Description
simple expression for excluding a given list of characters. simply change the contents of [^] to suite your needs. for example ^(/w|/W|[^&lt;&gt;])+$ would allow everything except the characters &lt; and &gt;.
Matches
John Doe Sr. | 100 Elm St., Suite 25 | Valerie's Gift Shop
Non-Matches
<h1>Hey</h1>
Author Rating: Not yet rated. Glenn Caccia
Title Test Details Pattern Title
Expression
(\{\\f\d*)\\([^;]+;)
Description
This pattern returns the font section from an RTF document. The first parenthetical subexpression captures the font number, the second returns the actual font enumeration. Lame-o, but fun! :-)
Matches
{\f0\Some Font names here; | {\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial; | {\f
Non-Matches
{f0fs20 some text}
Author Rating: Not yet rated. Joel Dooris
Title Test Details Pattern Title
Expression
(^\d{5}-\d{3}|^\d{2}.\d{3}-\d{3}|\d{8})
Description
Validar o do CEP Brasileiro com 8 posicoes podendo usar mascara . e - ou somente numeros
Matches
12.345-678 | 12345-678 | 12345678
Non-Matches
12.345678 | 12345-1 | 123
Author Rating: Not yet rated. Fernando Cerqueira
Title Test Details Pattern Title
Expression
^0[23489]{1}(\-)?[^0\D]{1}\d{6}$
Description
Regular Expression that validate a phone number inside israel.
Matches
03-6106666 | 036106666 | 02-5523344
Non-Matches
00-6106666 | 03-0106666 | 02-55812346
Author Rating: Not yet rated. Al Val
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
^([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
^([a-zA-Z0-9!@#$%^&amp;*()-_=+;:'&quot;|~`&lt;&gt;?/{}]{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!@#$%^&amp;*()-_=+;:'&quot;|~`&lt;&gt;?/{}]{1,5})$ This is the string, I keep getting &amp;amp;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
^[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 Pattern Title
Expression
^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$
Description
This will grep for a valid MAC address , with colons seperating octets. It will ignore strings too short or long, or with invalid characters. It will accept mixed case hexadecimal. Use extended grep.
Matches
01:23:45:67:89:ab | 01:23:45:67:89:AB | fE:dC:bA:98:76:54
Non-Matches
01:23:45:67:89:ab:cd | 01:23:45:67:89:Az | 01:23:45:56:
Author Rating: Not yet rated. Ted Rudyk
Title Test Details Pattern Title
Expression
[^A-Za-z0-9_@\.]|@{2,}|\.{5,}
Description
Used as a username validation script requires: 1. Allows All Alphanumeric characters &amp; underscore 2. Allows One &quot;@&quot; character 3. Allows Five &quot;.&quot; periods 4. Rejects spaces
Matches
user name | user#name | .....
Non-Matches
Author Rating: Not yet rated. Theo Tillotson
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-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
&lt;[iI][mM][gG]([^&gt;]*[^/&gt;])
Description
simple little RegExp to get the IMG tag from HTML
Matches
&lt;img src=&quot;abc.jpg&quot;&gt; | &lt;img src=&quot;abc.jpg&quot;/&gt; | &lt;ImG src=&quot;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
(^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
^[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
^\(?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
(^\(\)$|^\(((\([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
^(\{|\[|\().+(\}|\]|\)).+$
Description
Matches &quot;clan&quot; nicks/names.
Matches
{CLaN}nick | [Clan]Nick | (Clan)Nick
Non-Matches
Nick
Author Rating: Not yet rated. Jag fire
Change page:   |    Displaying page 8 of 9 pages; Items 141 to 160

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