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

Change page:   |    Displaying page 389 of 404 pages; Items 7761 to 7780
Title Test Details Email Validation excluding free domains
Expression
^\s*[a-zA-Z0-9_%+#&'*/=^`{|}~-](?:\.?[a-zA-Z0-9_%+#&'*/=^`{|}~-])*@(?!yahoo.|hotmail.|gmail.|outlook.|aol.|email.)(?:[a-zA-Z0-9_-]+\.)*(?:[a-zA-Z]{2,9}|\[(?:2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?:2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?:2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?:2[0-4]\d|25[0-5]|[01]?\d\d?)])\s*$
Description
Basing this off of the DotNetNuke (DNN) email validator, I made it so I could exclude certain domain names, you should be able to add whatever domain names you want.
Matches
jack.smith@my-domain.com or jack.smith@123.249.100
Non-Matches
jack.smith@yahoo.com or jack.smith@hotmail.com
Author Rating: Not yet rated. Randy Walker
Title Test Details Pattern Title
Expression
^\.([rR]([aA][rR]|\d{2})|(\d{3})?)$
Description
RAR file extensions. Works also with '*.part01.rar' given '.rar' to be the file extension. Does not support volumes exceed 101 for s## (r99, s00, s01, ...) serie.
Matches
.RAr | .r01 | .012
Non-Matches
.rxr | .a01 | .0112
Author Rating: Not yet rated. Jack Yang
Title Test Details XML Tag
Expression
(?<STag><)[/\?\s]*(?<Prefix>\w*:)*(?<TagName>\w*)\s*(?<Attributes>(?<Attribute>((?<AttributePrefix>\w*)\s*:\s*)*(?<AttributeName>\w*)\s*=\s*(?<AttributeValue>"[^"]*"|'[^']*'|[^>\s]*)\s*)*)\s*/?(?<ETag>>)
Description
Match a start/end XML tag
Matches
<xs:complexType name="includeType" mixed="true">
Non-Matches
...
Author Rating: The rating for this expression. Jin Feng
Title Test Details Iranian license Plate
Expression
^([10-99]{2})+\s?([\u0600-\u06FF]\s{1})+\s?([100-999]{3})$
Description
Check License Plate of Iranian Cars
Matches
41 ج 143
Non-Matches
41 ج 1433
Author Rating: The rating for this expression. Ali Torki
Title Test Details Pattern Title
Expression
^0(6[045679][0469]){1}(\-)?(1)?[^0\D]{1}\d{6}$
Description
Validates Austrian Cellular Phone Numbers. Works with ONE, T-Mobile, A1, Telering and new Provider &quot;Drei&quot;. WITHOUT Country Code Verification.
Matches
0664-1234567 | 06641234567 | 0699-11234567
Non-Matches
06991-1234567 | +43650-1234567 | 07661234567
Author Rating: Not yet rated. Stefan Beylen
Title Test Details min 2 characters
Expression
^.{2,}$
Description
^.{2,}$ ^ = start of line . = any character {2,} = 2 or more characters $ = end of line
Matches
LA
Non-Matches
I
Author Rating: Not yet rated. zsnbfgop
Title Test Details Date Matching Regex
Expression
^\d?\d([./-])\d?\d\1(?:\d\d|\d{4})$
Description
Here's a super simple one for checking dates written numerically, MM/DD/YYYY. Separators can be "/", "-", or "." and must be the same. Because of it's simplicity it will allow dates that don't exist but that doesn't matter if you're looking for a basic date format checker and like to keep it simple.
Matches
1/2/14 | 01-02-2014 | 1.20.14
Non-Matches
1/2/014 | 1-2.2014 | Jan.2, 2014
Author Rating: Not yet rated. tedcambron
Title Test Details Another Date Matching Regex
Expression
^([a-yA-Y]{3,4}(?:\.?|[a-yA-Y]{1,6}?)\s?\d?\d(?:[d-tD-T]{2})?\,?\s?(?:\'?\d\d|\d{4}))$
Description
This will match things resembling a written date. It will match dates written incorrectly of course but this cute and funny date matching regex is for the beauty of the simplicity in checking the many ways to write a date.
Matches
Jan. 1, 2014 | January 1, '14 | JAN 1ST 2014
Non-Matches
this is not a date | 123 isn't either | neither is this!
Author Rating: Not yet rated. tedcambron
Title Test Details URL Segments
Expression
(?:[a-zA-Z0-9]+(?:(?:_|\-|\.)[a-zA-Z0-9]+)*)
Description
This is an expression I sometimes use to verify segments in a URL or directory path. It must begin and end with a word character and may contain "_" "-" and "." one at a time. It's non-capturing as it sits. More restrictive than RFC2396 and used to prevent directory transversal holes.
Matches
abc-123 | abc.def.ghi | my_path
Non-Matches
_abc | abc..123 | -my_path
Author Rating: Not yet rated. tedcambron
Title Test Details Domain Name
Expression
(?:[^0-9][a-zA-Z0-9]+(?:(?:\-|\.)[a-zA-Z0-9]+)*)
Description
This is a little regex to verify domain style names per RFC952. This is also found in RFC1034 and both use the terms domain name and host name interchangeably even though I believe there may be a difference. Only alpha, digit, and dashes allowed with a dot as delimiter. Must begin with alpha and not end with a dash or dot. No spaces.
Matches
abc.123 | abc-xyz | my-name.for.me
Non-Matches
123.abc | abc- | abc..
Author Rating: Not yet rated. tedcambron
Title Test Details URL w/ Port Option
Expression
^(\w{3,6}\:\/\/[\w\-]+(?:\.[\w\-]+)+(?:\:\d{2,4})*(?:\/?|(?:\/[\w\-]+)*)(?:\/?|\/\w+\.\w{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&[\w]+\=[\w\-]+)*)$
Description
Here's my relaxed version of an URL regex. This one accepts just about anything but a double dot but still must resemble an URL to pass. Unlike my other URL validater this one accepts a port. Doesn't accept out of place meta characters.
Matches
http://domain.com/ | ftp://foo.bar/dir | https://me.us/file.pl?arg=1
Non-Matches
http://domain | ftp://foo.bar//dir | https://me.us/file..pl
Author Rating: The rating for this expression. tedcambron
Title Test Details Embedded YouTube Video
Expression
(\"http:\/\/www\.youtube\.com\/v\/\w{11}\&rel\=1\")
Description
A simple regex to validate an embedded YouTube video.
Matches
a valid embedded YouTube video
Non-Matches
anything else
Author Rating: The rating for this expression. tedcambron
Title Test Details Embedded Google Video
Expression
(\"http:\/\/video\.google\.com\/googleplayer\.swf\?docId=\d{19}\&hl=[a-z]{2}\")
Description
A simple regex for validating an embedded Google video.
Matches
an embedded Google video
Non-Matches
anything else
Author Rating: The rating for this expression. tedcambron
Title Test Details Punctuation
Expression
^((\'|\")?[a-zA-Z]+(?:\-[a-zA-Z]+)?(?:s\'|\'[a-zA-Z]{1,2})?(?:(?:(?:\,|\.|\!|\?)?(?:\2)?)|(?:(?:\2)?(?:\,|\.|\!|\?)?))(?: (\'|\")?[a-zA-Z]+(?:\-[a-zA-Z]+)?(?:s\'|\'[a-zA-Z]{1,2})?(?:(?:(?:\,|\.|\!|\?)?(?:\2|\3)?)|(?:(?:\2|\3)?(?:\,|\.|\!|\?)?)))*)$
Description
This is a little goofy regex to allow punctuation. I was reluctant to post it but what the heck. If it puts a smile on somebody's face then it was worth it. It works in most cases. :)
Matches
"hello!" | "hello again"! | I'm back
Non-Matches
hello" | "hello again!"! | I'mnot back
Author Rating: The rating for this expression. tedcambron
Title Test Details Person's Name
Expression
^([a-zA-Z]+(?:\.)?(?:(?:'| )[a-zA-Z]+(?:\.)?)*)$
Description
Here's a regex for a person's name. Simple but effective.
Matches
Mr. O'Donnell III | Billy B. Bob Jr.
Non-Matches
@$%&? | 0'Donnell
Author Rating: The rating for this expression. tedcambron
Title Test Details Subject or Title w/ Punctuation
Expression
^([^_][\w\d\@\-]+(?:s\'|\'[a-zA-Z]{1,2})?(?:\,)?(?: [\w\d\@\-]+(?:s\'|\'[a-zA-Z]{1,2})?(?:\,)?)*(?:\.|\!|\?){0,3}[^\s_])$
Description
Here's a regex for a title or subject line. The title (or subject) may contain basic punctuation and may not have leading or trailing spaces or underscores but that's about it.
Matches
Wow, what a day! | 100th Aniversary | This Works...
Non-Matches
!Wow,what a night | _begin_ | This ,wont work' either....
Author Rating: Not yet rated. tedcambron
Title Test Details Numbers
Expression
^((?:\+|\-|\$)?(?:\d+|\d{1,3}(?:\,\d{3})*)(?:\.\d+)?(?:[a-zA-Z]{2}|\%)?)$
Description
Here's another one for numbers. Any kind of number. Money $$$, percentage %, ect. Commas are optional and must be properly formatted.
Matches
$1,000,000.00 | 100% | 12345.67890
Non-Matches
$$10.00 | 10%% | 1234,5678, | 123.456.789
Author Rating: The rating for this expression. tedcambron
Title Test Details Domain URL
Expression
^(http\:\/\/(?:www\.)?[a-zA-Z0-9]+(?:(?:\-|_)[a-zA-Z0-9]+)*(?:\.[a-zA-Z0-9]+(?:(?:\-|_)[a-zA-Z0-9]+)*)*\.[a-zA-Z]{2,7}(?:\/)?)$
Description
A URL to a domain name. Only for HTTP but that can be easily changed to accept more. The dashes and underscores can only be used between text and/or digits. The slash on the end is optional. Unlike my other URL checkers this one does not allow query strings.
Matches
http://www.website.com/ | http://my-website.net | http://another_site.org
Non-Matches
www.website.com | http://_website.com | http://www. web--site.com
Author Rating: The rating for this expression. tedcambron
Title Test Details Password
Expression
^([a-zA-Z0-9]{6,18}?)$
Description
My simple but effective password regex. The password can only contain letters and/or digits and must be at least 6 characters long and no more than 20. I know it says {6,18} but it just works out that way. The question mark was added for optimization. Also, the password can not begin or end with a space or underscore.
Matches
abc123
Non-Matches
_abc123_
Author Rating: The rating for this expression. tedcambron
Title Test Details Absolute Path
Expression
^((?:\/[a-zA-Z0-9]+(?:_[a-zA-Z0-9]+)*(?:\-[a-zA-Z0-9]+)*)+)$
Description
An overly simple UNIX based path regex. The path must begin with a forward slash. The path segments may not lead or end with an underscore or dash which is a good thing. They also can not be doubled (__ or --). Another good thing. I've omitted all the punctuation that RFC allows until further notice.
Matches
/users/web/mysite/web/cgi-bin
Non-Matches
/users/web/my site/web/cgi-bin | users/web/mysite/web/cgi-bin/
Author Rating: The rating for this expression. tedcambron
Change page:   |    Displaying page 389 of 404 pages; Items 7761 to 7780

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