RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 4000 regular expressions found.

Change page:   |    Displaying page 1 of 200 pages; Items 1 to 20
Title Test Details Pattern Title
Expression
([\d\w-.]+?\.(a[cdefgilmnoqrstuwz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvxyz]|d[ejkmnoz]|e[ceghrst]|f[ijkmnor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eouw]|s[abcdeghijklmnortuvyz]|t[cdfghjkmnoprtvwz]|u[augkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]|aero|arpa|biz|com|coop|edu|info|int|gov|mil|museum|name|net|org|pro)(\b|\W(?<!&|=)(?!\.\s|\.{3}).*?))(\s|$)
Description
This will find URLs in plain text. With or without protocol. It matches against all toplevel domains to find the URL in the text.
Matches
http://www.website.com/index.html | www.website.com | website.com
Non-Matches
Works in all my tests. Does not capture protocol.
Author Rating: The rating for this expression. James Johnston
Title Test Details Pattern Title
Expression
&lt;a\s*href=(.*?)[\s|&gt;]
Description
Retrieves all anchor links in a html document, useful for spidering. You will need to do a replace of &quot; and ' after the regular expression, as the expression gets all links. As far as I know there is no way, even with \1 groupings, of getting a condition on whether the link contains a &quot;,' or nothing at all (&quot; and ' is easy enough, but what happens if the link starts with &quot;, and has a javascript function call with a string in it). If there is, it's probably quicker to do it like this and do a string replace anyway.
Matches
&lt;a href=&quot;http://www.blah.com&quot;&gt; | &lt;a href='../blah.html' target=&quot;_top&quot;&a
Non-Matches
&lt;a href = http://www.idiothtmlprogrammers.com &gt;
Author Rating: The rating for this expression. chris s
Title Test Details ISBN
Expression
/((978[\--– ])?[0-9][0-9\--– ]{10}[\--– ][0-9xX])|((978)?[0-9]{9}[0-9Xx])/
Description
match isbn 10 and 13
Matches
978-1-4302-1998-9 | 1–931836–59–0 | 1593270127 | 0 321 15420 7 | 978-0-07-162612-5
Non-Matches
978-0-07-1626125 | 15932701X7 | 970-0-596-52678-8
Author Rating: The rating for this expression. Santiago Neira
Title Test Details How Select The Best Colon Cleanse Product
Expression
http://dermaessencecreamblog.com/nature-renew/
Description
Nature Renew Cleanse Actually the toxins formed with digestion do not find an exit once the colon is malfunctioning. As being a result, these toxins get re-circulated on the body, hampering our entire system. http://dermaessencecreamblog.com/nature-renew/
Matches
http://dermaessencecreamblog.com/nature-renew/
Non-Matches
http://dermaessencecreamblog.com/nature-renew/
Author Rating: The rating for this expression. kals jaiy
Title Test Details Single Email Match - current June 2010
Expression
^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2}|aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel)$
Description
Matches email addresses. Based on expression at regular-expressions.info/email.html modified to include all top-level domains (TLD)listed on wikipedia as of June 2010. Needs to be updated as new TLDs are added. Known Issues: * IP Addresses will not validate * Double "at" symbols, e.g. email@em@il.com slip by this regex. Would welcome improvements by a regex ninja.
Matches
email@email.com | email@email.cn | e_m81l&em%'l@eMail.MUSEUM | email@em@il.com
Non-Matches
email@com | email@email.con | email@email.museet | email@192.0.0.1
Author Rating: Not yet rated. Brent Thomas
Title Test Details International & Domestic Phone Numbers with Ext
Expression
^([\+][0-9]{1,3}([ \.\-])?)?([\(]{1}[0-9]{3}[\)])?([0-9A-Z \.\-]{1,32})((x|ext|extension)?[0-9]{1,4}?)$
Description
Somewhat conservative expression for evaluating phone numbers. Based off ideas found at http://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation this allows country codes, with or without the + symbol, area codes surrounded by parenthesis (or not) and numbers delimited by spaces, periods or dashes. You'll want to independently test for string length based on your needs.
Matches
(123)456-7890 | (123)456-7890 x123 | +1 (123)456-7890 | 12 3456 789 0 x1234 | (123)456-7890x123 |(123)456-7890ext123 | (123)456-7890 extension123 | 123.456.7890 | 1234567890 | 1234567 | 12 34 56 78 90 | 12 3 4567 890123 x4567 | +12 3456 7890 | +12 34 56 7890 | +12 3456 7890 | +12 34567890
Non-Matches
(123)456-7890 x 123 | 123.45.6.78+90
Author Rating: Not yet rated. Brent Thomas
Title Test Details http://www.healthbuzzer.com/headlock-muscle-growth/
Expression
http://www.healthbuzzer.com/headlock-muscle-growth/
Description
HeadLock Muscle Growth Know your limits, and push yourself in an exercise to the point at which you hit that limit. When doing your sets, keep going until you literally cannot go any further. Using this strategy might mean you need to do fewer reps as you become fatigued. Read more >>> http://www.healthbuzzer.com/headlock-muscle-growth/
Matches
.
Non-Matches
.
Author Rating: Not yet rated. Brian Bass
Title Test Details Date Match
Expression
^(d{0}|(31(?!(FEB|APR|JUN|SEP|NOV)))|((30|29)(?!FEB))|(29(?=FEB(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(29(?=FEB(((0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])(JAN|FEB|MAR|MAY|APR|JUL|JUN|AUG|OCT|SEP|NOV|DEC)((1[6-9]|[2-9]\d)\d{2}|\d{2}|d{0})$
Description
This pattern mathces the following date formats: DDMMMYY,DDMMMYYYY,DDMMMYY. The Pattern matches on leap year dates as well
Matches
12MAR02 | 12MAR2008 | 29FEB2008 | 12MAR
Non-Matches
29FEB2007 | 32MAR | 00APR
Author Rating: Not yet rated. Ole
Title Test Details Scientific Notation
Expression
^(-?[1-9](\.\d+)?)((\s?[X*]\s?10[E^]([+-]?\d+))|(E([+-]?\d+)))$
Description
Matches both normalized and E notations, with or without spaces or negative numbers. Make sure to use a case insensitive pattern matcher. Group 1 is the significand, and either group 5 or group 7 is the exponent (one or the other will be null, but never both).
Matches
1.1 x 10^9 | 2.34 X 10^12 | 3.14159 * 10^30 | 1.1x10^9 | 2.34X10^12 | 3.14159*10^30 | 1.1 x 10e9 | 2.34 x 10E12 | 3.14159e30 | 1.1 x 10^-9 | 2.34 X 10^-12 | 3.14159E-30 | -1.1 x 10^9 | -2.34 X 10E12 | -3.14159 * 10e30 | -1.1x10^-9 | -2.34E-12 | -3.14159e-30 | 3.1459E+030 | 1x10^9 | 1E9
Non-Matches
0.1 x 10^9 | 23.4 x 10^12 | 3.14159 * 10e^30 | 1.1e8.3
Author Rating: Not yet rated. Jared Cook
Title Test Details Pattern Title
Expression
^(\d{4}-){3}\d{4}$|^(\d{4} ){3}\d{4}$|^\d{16}$
Description
Used to validate Credit Card numbers, Checks if it contains 16 numbers in groups of 4 separated by -, ,or nothing
Matches
1111-2323-2312-3434 | 1234343425262837 | 1111 2323 2312 3434
Non-Matches
1111 2323 2312-3434 | 34323423 | 1111-2323-23122-3434
Author Rating: Not yet rated. Sachin Bhatt
Title Test Details Pattern Title
Expression
^([a-zA-Z '-]+)$
Description
Check if the text is a valid firstname or lastname.It allows Characters,'- and space only
Matches
Sachin Bhatt | D'Souza | Ul-Haq
Non-Matches
sac2hin | sc*&amp; | sac)in
Author Rating: The rating for this expression. Sachin Bhatt
Title Test Details FQDN for DNS configuration tool
Expression
^(?=^.{1,254}$)(^(?:(?!\.|-)([a-z0-9\-\*]{1,63}|([a-z0-9\-]{1,62}[a-z0-9]))\.)+(?:[a-z]{2,})$)$
Description
This regex matches FQDNs plus domains starting with an or containing asterisk. This is usefull for DNS configuration tools where you might have domains like *.domain.de or 12.152.80.in-addr.arpa.
Matches
12.152.80.in-addr.arpa | *.domain.de | test.de
Non-Matches
test | test. | -.de
Author Rating: Not yet rated. Andreas Burger
Title Test Details Number
Expression
^\s*[+-]?\s*(?:\d{1,3}(?:(,?)\d{3})?(?:\1\d{3})*(\.\d*)?|\.\d+)\s*$
Description
Matches numbers. May include decimals, thousands separators, and sign.
Matches
5,000 | - 10 | .1
Non-Matches
7.000.000 | 5,0000 | 1.000,000
Author Rating: Not yet rated. mark
Title Test Details AW Short Coordinate
Expression
^[0-9]+[NnSs] [0-9]+[WwEe]$
Description
This tests, are entered AW coordinates in correct short format, and it has no world info
Matches
0N 0W
Non-Matches
aw 0N 0W
Author Rating: Not yet rated. Slysoft
Title Test Details Relocate Your Home - relocateurhome.in
Expression
packers
Description
Relocateurhome.in provide Packers and Movers Services in India. Get best 3 Movers and Packers Quotation to save money and select the best Packers and Movers for easy and simple move. <a href="http://www.relocateurhome.in/packers-and-movers-bangalore.html">packers and movers in bangalore</a> <a href="http://www.relocateurhome.in/packers-and-movers-hyderabad.html">packers and movers in hyderabad</a> <a href="http://www.shiftingsolutions.in/packers-and-movers-bangalore.html">packers and movers bangalore</a>
Matches
packers
Non-Matches
dance
Author Rating: Not yet rated. Neha Kakkar
Title Test Details Relocation Services of Movers Packers in Bangalore
Expression
neha
Description
Types of taking as well as relocating businesses working within the area Bangalore. These lenders deliver wide selection connected with moving companies towards persons in their move. Most of the companies offer the solutions regarding separation from the area coming from another metropolis or maybe relocation to help any other metropolis type this kind of location plus new house purchase inside the area. Every one of the expert firms deliver their particular services in most different kinds of new house purchase like household relocation, industrial moving, etc. packers and movers in bangalore @ http://www.relocateurhome.in/packers-and-movers-bangalore.html packers and movers in hyderabad @ http://www.relocateurhome.in/packers-and-movers-hyderabad.html packers and movers bangalore @ http://www.shiftingsolutions.in/packers-and-movers-bangalore.html
Matches
packers
Non-Matches
movers
Author Rating: The rating for this expression. Neha Kakkar
Title Test Details Allow Decimal only
Expression
^\d*[0-9](|.\d*[0-9]|)*$
Description
Decimal like 123.23 123.1234 12345.456
Matches
123.23 | 123.1234 | 1234 | 1234.456
Non-Matches
123a.12 | 123.34d | abc
Author Rating: Not yet rated. Gyanendra
Title Test Details Pattern Title
Expression
(?s)( class=\w+(?=([^&lt;]*&gt;)))|(&lt;!--\[if.*?&lt;!\[endif\]--&gt;)|(&lt;!\[if !\w+\]&gt;)|(&lt;!\[endif\]&gt;)|(&lt;o:p&gt;[^&lt;]*&lt;/o:p&gt;)|(&lt;span[^&gt;]*&gt;)|(&lt;/span&gt;)|(font-family:[^&gt;]*[;'])|(font-size:[^&gt;]*[;'])(?-s)
Description
Word HTML cleanup code. Use this expression to get rid of most of the stuff that Word adds to an HTML document such as: lots of span elements, font-family and font-size style attributes, class attributes, a whole bunch of if-then statements. Use this expression in a regex.replace(originalHtml, regExpr, &quot;&quot;).
Matches
&lt;span&gt;
Non-Matches
&lt;table&gt;
Author Rating: The rating for this expression. Peter Donker
Title Test Details Pattern Title
Expression
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w ]*.*))+\.((html|HTML)|(htm|HTM))$
Description
Path of files HTML and HTM
Matches
c:\arquivo.html | \\home\arquivo232.HTML | Z:\teste.htm
Non-Matches
c:\arquivo.png | arquivo232.HTML | Z:\teste
Author Rating: The rating for this expression. Diego Siebra Ferreira
Title Test Details English letters
Expression
"^([a-zA-Z])*$"
Description
Using regular expressions, you can just use the English alphabet.
Matches
jan | sara | America | how are you |
Non-Matches
123 | jan12 | sara036 | zip code 985
Author Rating: Not yet rated. Mohammadreza Dehnashe
Change page:   |    Displaying page 1 of 200 pages; Items 1 to 20

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