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: 9125 regular expressions found.

Change page:   |    Displaying page 428 of 457 pages; Items 8541 to 8560
Title Test Details UK Phone Number in 5-2-2-2 Format
Expression
^[\d]{5}[-\s]{1}[\d]{2}[-\s]{1}[\d]{2}[-\s]{1}[\d]{2}$
Description
Allows dashes or spaces to separate.
Matches
08000 22 22 22 | 08700-22-22-22 | 08440 22-22-22
Non-Matches
08000222222 | 08000=22=22=22 | 08000 22 22 22
Author Rating: Not yet rated. Matthew Harris
Title Test Details UK Phone Number in 5-4-2 Format
Expression
^[\d]{5}[-\s]{1}[\d]{4}[-\s]{1}[\d]{2}$
Description
Allows dashes or spaces to separate.
Matches
0800 4444 22 | 0870-4444-22 | 0844 4444-22
Non-Matches
0800444422 | 0800=4444=22 | 0800 4444 22
Author Rating: Not yet rated. Matthew Harris
Title Test Details UK Phone Number in 5-2-4 Format
Expression
^[\d]{5}[-\s]{1}[\d]{2}[-\s]{1}[\d]{4}$
Description
Allows dashes or spaces to separate.
Matches
0800 22 4444 | 0870-22-4444 | 0844 22-4444
Non-Matches
0800224444 | 0800=22=4444 | 0800 22 4444
Author Rating: Not yet rated. Matthew Harris
Title Test Details Up to 15 digits followed by 0,1 or 2 floating points
Expression
^[0-9]{1,15}(\.([0-9]{1,2}))?$
Description
This might seem like a contrived example but it was written to answer a question on a forum. For regex newbies you can just change the numbers in {} to change the number of required digits to suit your requirements
Matches
1 | 123456789012345 | 123456789012345.1 | 123456789012345.12 | 123456.12
Non-Matches
.12 | 12345.123 | 1234567890123456
Author Rating: The rating for this expression. Matthew Harris
Title Test Details UK Postcode District
Expression
([A-PR-UWYZa-pr-uwyz]([0-9]{1,2}|([A-HK-Ya-hk-y][0-9]|[A-HK-Ya-hk-y][0-9]([0-9]|[ABEHMNPRV-Yabehmnprv-y]))|[0-9][A-HJKS-UWa-hjks-uw]))
Description
Matches the first part of a UK Postcode (known as a postcode district). Case insensitive. Doesnt match: GIR # the postcode for the formerly Post Office-owned Girobank is GIR 0AA. SAN # the postcode for correctly addressed letters to Father Christmas is SAN TA1
Matches
LN5 | SW1 | ln5
Non-Matches
ln5 7nq | GIR | SAN
Author Rating: The rating for this expression. Matthew Harris
Title Test Details Skype Name
Expression
^[a-z][a-z0-9\.,\-_]{5,31}$
Description
Validate for Skype Name: must be between 6-32 characters, start with a letter and contain only letters and numbers (no spaces or special characters).
Matches
ASd_RT45326FR
Non-Matches
ASd_@#$*&(
Author Rating: Not yet rated. Avi Azran
Title Test Details URI with Scheme, Path, Query, and Fragment
Expression
(?m)^(?<scheme>\w+?://)?(?<path>(?:[\w.%$\-_+!*'(),=@]+\/|\b)+(?:[\w.%$\-_+!*'(),=@]*))(?<query>\?(?:[\w.%$\-_+!*'(),=@]+=[\w.%$\-_+!*'(),=@]*&?)*)?(?<fragment>#[\w\.%$\-_+!*'(),=@]*)?
Description
Identifies scheme, path, query, and fragment in any URI, putting them into named groups. All groups are optional except path.
Matches
http://regexlib.com/
Non-Matches
~~~~
Author Rating: Not yet rated. Kevin Spencer
Title Test Details TR Content
Expression
(?s)<tr[^>]*>(?<content>.*?)</tr>
Description
Matches complete table rows (<tr>...</tr>) and puts everything between the tr tags into a group named "content".
Matches
<tr><td>abc</td></tr>
Non-Matches
<tr><td>abc</td>
Author Rating: Not yet rated. Kevin Spencer
Title Test Details Query String Parameters
Expression
[\?&](?<name>[^&=]+)=(?<value>[^&=]+)
Description
Matches name/value pairs in HTTP Query Strings, placing name into group named "name" and value into group named "value"
Matches
http://regexlib.com/?a=b&c=d
Non-Matches
http://regexlib.com/
Author Rating: Not yet rated. Kevin Spencer
Title Test Details METAR Report
Expression
(?i)^(?:(?:METAR|SPECI)\s*)*(?<ICAO>[\w]{4})\s*?(?<DateUTC>(?<DayOfMonth>\d{0,2})(?<Hour>\d{2})(?<Minutes>\d{2}))Z{1}\s*(?:[^\r\n])*
Description
Matches any legitimate METAR (Meterological Weather Report) string, and places parts into named groups, "ICAO", "DateUTC", "DayOfMonth", "Hour", "Minutes"
Matches
METAR KORF 310951Z 21004KT 10SM CLR 17/16 A3018
Non-Matches
310951Z 21004KT 10SM CLR 17/16 A3018
Author Rating: Not yet rated. Kevin Spencer
Title Test Details HTML href
Expression
(?i)(?s)<a[^>]+?href="?(?<url>[^"]+)"?>(?<innerHtml>.+?)</a\s*>
Description
Matches a complete HTML href tag, placing the URL into a group named "url" and the innerHTML into a group named "innerHtml"
Matches
<a href="http://regexplib.com">Inner <span>html</span></a>
Non-Matches
<a href="http://regexplib.com">
Author Rating: The rating for this expression. Kevin Spencer
Title Test Details Hyperlink attributes
Expression
(?s)(?<=<a[^>]+?)(?<name>\w+)=(?:["']?(?<value>[^"'>]*)["']?)(?=.+?>)
Description
Captures all attributes in HTML anchor tags, putting them into groups named "name" and "value"
Matches
<a class='foo' href="http://regexplib.com">
Non-Matches
<p align="center">&nbsp;</p>
Author Rating: Not yet rated. Kevin Spencer
Title Test Details Pattern Title
Expression
&lt;!--[\s\S]*?--[ \t\n\r]*&gt;
Description
As I could understand the HTML standard, this is the valid reg.exp. for comments. The only differenc from the last one is that the comment can be terminated by two minuses followed by none OR SOME space caracters and then by character &gt;
Matches
&lt;!-- anything -- &gt; | &lt;!-- anything -&gt; -&gt; --&gt;
Non-Matches
&lt;!-- something -- and more &gt;
Author Rating: The rating for this expression. Kristijan Mitrovic
Title Test Details UK Telephone Format
Expression
^0(((1[0-9]{2}[ -]?[0-9]{3}[ -]?[0-9]{4})|(1[0-9]{3}[ -]?[0-9]{6})|(1[0-9]{4}[ -]?[0-9]{4,5}))|((1[0-9]1)|(11[0-9]))[ -]?[0-9]{3}[ -]?[0-9]{4}|(2[0-9][ -]?[0-9]{4}[ -]?[0-9]{4})|((20[ -]?[0-9]{4})|(23[ -]?[8,9][0-9]{3})|(24[ -]?7[0-9]{3})|(28[ -]?(25|28|37|71|82|90|92|95)[0-9]{2})|(29[ -]?2[0-9]))[ -]?[0-9]{4}|(7[4-9][0-9]{2}[ -]?[0-9]{6})|((3[0,3,4,7][0-9])[ -]?[0-9]{3}[ -]?[0-9]{4})|((5[5,6][ -]?[0-9]{4}[ -]?[0-9]{4})|(500[ -]?[0-9]{3}[ -]?[0-9]{4}))|(8[0247][0-9]{1}[ -]?[0-9]{3}[ -]?[0-9]{4})|(9[0-9]{2}[ -]?[0-9]{3}[ -]?[0-9]{4}))$
Description
Follows http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom must have a specific length and be a valid telephone number in the UK Must start with a 0, have included 01 02 03 05 08 numbers. character spacing have be " ", "-", accepts 01 02 03 05 07 08 numbers, rejects everything else.
Matches
020 1234 1234 | 020-1234-1234 | 02012341234 | 01234 123456 | 012345 1234
Non-Matches
0201 234 1234 | 0201-234-1234 | 0201234123 | 012341 23456 | 0123451 234 | 00000 000000
Author Rating: Not yet rated. Craig Hughes
Title Test Details Valid URL without protocol
Expression
^([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$
Description
Use this expression to check that a valid web address is used without any protocol.
Matches
www.myurl.com | myurl.com/default.aspx?i=id | www3.myurl.com/?a
Non-Matches
www.my url.com | myurl.com/default.aspx?i=1 2 3 | www3.myurl.com?a | http://myurl.com
Author Rating: The rating for this expression. Craig Palenshus
Title Test Details Validates the most of the email formats
Expression
/^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}([a-z0-9]|([a-z0-9][\-]))+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Description
This expression will validates most of the email formats.
Matches
aa@abc.com,aa@abc.co.in,aa@aa-bb.com,aa.bb@abc.com,aa-bb@abc.com,aa_bb@abc.com
Non-Matches
aaa@abc.co.in.co,aaa@abc.com.sg121
Author Rating: The rating for this expression. Rafiq
Title Test Details RegEx for email validation
Expression
/^([a-zA-Z0-9])(([\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/
Description
This expresssion will validate all possible formats except if web site URL contains hyphen characters like aa@a-b-c.com. I will include this feature also in next version.
Matches
a@abc.com,a@abc.co.in,aa.bb@abc.com.sg,aa_bb@abc.biz,aa.C.bb@abc.com,aa_1900@abc.co.in
Non-Matches
@abc.com,a@abc.co.in.in,a@abc.com.in.in,a@a-b-c.com
Author Rating: The rating for this expression. Rafiq
Title Test Details Url validation
Expression
(http|https)\:\/\/(([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3})|([\w\-]+\.)+(((af|ax|al|dz|as|ad|ao|ai|aq|ag|am|aw|au|at|az|bs|bh|bd|bb|by|be|bz|bj|bm|bt|bo|ba|bw|bv|br|io|bn|bg|bf|kh|cm|ca|cv|ky|cf|td|cl|cn|cx|cc|km|cg|cd|ck|cr|ci|hr|cu|cy|cz|dk|dj|dm|do|ec|eg|sv|gq|er|ee|et|fk|fo|fj|fi|fr|gf|pf|tf|ga|gm|ge|de|gh|gi|gr|gl|gd|gp|gu|gt| gg|gn|gw|gy|ht|hm|va|hn|hk|hu|is|id|ir|iq|ie|im|il|it|jm|jp|je|jo|kz|ke|ki|kp|kr|kw|kg|la|lv|lb|ls|lr|ly|li|lt|lu|mo|mk|mg|mw|my|mv|ml|mt|mh|mq|mr|yt|mx|fm|md|mc|mn|ms|ma|mz|mm|nr|np|nl|an|nc|nz|ni|ng|nu|nf|mp|no|om|pk|pw|ps|pa|pg|py|pe|ph|pn|pl|pt|qa|re|ro|ru|rw|sh|kn|lc|pm|vc|ws|sm|st|sa|sn|cs|sc|sl|sg|sk|si|sb|so|za|gs|es|lk|sd|sr|sj|sz|se|ch|sy|tw|tj|tz|th|tl|tg|tk|to|tt|tn|tr|tm|tc|tv|ug|ua|gb|us|um|uy|uz|vu|ve|vn|vg|vi|wf|eh|ye|zm|zw|uk|com|edu|gov|int|mil|net|org|biz|info|name|pro|aero|coop|museum|arpa|co|in|ne|bi|na|pr|ae|mu|ar))))(:[\d]{1,4})?($|(\/([a-zA-Z0-9\.\?=/#%&\+-])*)*|\/)
Description
An URL validation pattern with respect for TLD domains. It also validates ip urls, but it doesn't check for ip single parts range (1-255). It supports port specification.
Matches
http://www.gianlucaesposito.it, http://www.gianluca.esposito.it, http://www.gianluca-esposito.it, http://www.gianlucaesposito.it/, http://www.gianlucaesposito.it/index.html, http://www.gianlucaesposito.it/index.php?id=1, http://www.gianlucaesposito.it:8080, http://www.gianlucaesposito.it:8080/, http://www.gianlucaesposito.it:8080/index.html, http://127.0.0.1, http://127.0.0.1:8080/, http://127.0.0.1:8080/index.html
Non-Matches
http://www.gianlucaesposito.xx, http://www.gianluca-esposito.yy, http://www.gianluca.esposito.zzz
Author Rating: Not yet rated. Gianluca Esposito
Title Test Details Email validation
Expression
([\w\-\.]*)@(([\d]{1,3}\.[\d]{1,3}\.[\d]{1,3}\.[\d]{1,3})|([\w\-]+\.)+(((af|ax|al|dz|as|ad|ao|ai|aq|ag|am|aw|au|at|az|bs|bh|bd|bb|by|be|bz|bj|bm|bt|bo|ba|bw|bv|br|io|bn|bg|bf|kh|cm|ca|cv|ky|cf|td|cl|cn|cx|cc|km|cg|cd|ck|cr|ci|hr|cu|cy|cz|dk|dj|dm|do|ec|eg|sv|gq|er|ee|et|fk|fo|fj|fi|fr|gf|pf|tf|ga|gm|ge|de|gh|gi|gr|gl|gd|gp|gu|gt| gg|gn|gw|gy|ht|hm|va|hn|hk|hu|is|id|ir|iq|ie|im|il|it|jm|jp|je|jo|kz|ke|ki|kp|kr|kw|kg|la|lv|lb|ls|lr|ly|li|lt|lu|mo|mk|mg|mw|my|mv|ml|mt|mh|mq|mr|yt|mx|fm|md|mc|mn|ms|ma|mz|mm|nr|np|nl|an|nc|nz|ni|ng|nu|nf|mp|no|om|pk|pw|ps|pa|pg|py|pe|ph|pn|pl|pt|qa|re|ro|ru|rw|sh|kn|lc|pm|vc|ws|sm|st|sa|sn|cs|sc|sl|sg|sk|si|sb|so|za|gs|es|lk|sd|sr|sj|sz|se|ch|sy|tw|tj|tz|th|tl|tg|tk|to|tt|tn|tr|tm|tc|tv|ug|ua|gb|us|um|uy|uz|vu|ve|vn|vg|vi|wf|eh|ye|zm|zw|uk|com|edu|gov|int|mil|net|org|biz|info|name|pro|aero|coop|museum|arpa|co|in|ne|bi|na|pr|ae|mu|ar)))?)
Description
Email validation regular expression. It checks for TLD domain correctness and supports for IP addresses. It doesn't check for ip single parts range validity (1-255).
Matches
info@gianlucaesposito.it, info1@gianluca.esposito.it, info@gianluca-esposito.it, info.test@gianlucaesposito.it, info@127.0.0.1
Non-Matches
info!@gianlucaesposito.it, info#@gianlucaesposito.it, info@127.0.0.1:8080
Author Rating: Not yet rated. Gianluca Esposito
Title Test Details Aadhar card Regex
Expression
^\d{4}\s\d{4}\s\d{4}$
Description
This regular expression will match a Aadhar Number in the format 1111 1111 1111.
Matches
1234 5678 9123
Non-Matches
123456789123
Author Rating: The rating for this expression. Niraj Chaudhary
Change page:   |    Displaying page 428 of 457 pages; Items 8541 to 8560

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