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

Change page:   |    Displaying page 430 of 456 pages; Items 8581 to 8600
Title Test Details Class C Network Numbers
Expression
^(192\.168\.[0-9]|[1-9][0-9]|[1-2][0-5][0-5]\.[0-9]|[1-9][0-9]|[1-2][0-5][0-5])$
Description
This is the 16-bit block of the IP address space for private internets reserved by the IANA. A set of 256 contiguous class C network numbers per RFC 1918.
Matches
192.168.0.0 | 192.168.255.255
Non-Matches
10.0.0.0 | 172.31.255.255
Author Rating: Not yet rated. tedcambron
Title Test Details RFC Compliant Path
Expression
^(/(?:(?:(?:(?:[a-zA-Z0-9\\-_.!~*'():\@&=+\$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*'():\@&=+\$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*)(?:/(?:(?:(?:[a-zA-Z0-9\\-_.!~*'():\@&=+\$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*'():\@&=+\$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*))*))$
Description
After reading RFC2396 and researching it a little more I put together this regex to use for verifying a path rather than my non-compliant, safer, overly simple one. More specifically an absolute path.
Matches
All RFC2396 compliant paths
Non-Matches
A non-RFC2396 compliant path
Author Rating: Not yet rated. tedcambron
Title Test Details US Phone Number
Expression
^(1?(?: |\-|\.)?(?:\(\d{3}\)|\d{3})(?: |\-|\.)?\d{3}(?: |\-|\.)?\d{4})$
Description
This is my simple phone number regex. There are many like it but this is mine. It accepts the most common United States phone number formats that normal people use. The number 1 at the beginning is optional and so is the separators. The separators can be a dash (-), a period (.) or a space. Putting the area code in parenthesis is also an option. That's about it.
Matches
1-234-567-8910 | (123) 456-7891 | 123.456.7891 | 12345678910
Non-Matches
12-345-678-9101 | 123-45678 | 123456789101
Author Rating: The rating for this expression. tedcambron
Title Test Details US Zip Code
Expression
^(\d{5}(?:\-\d{4})?)$
Description
Just for US zip codes. Very simple but effective regex for verifying a number that resembles a zip code. The post office number is optional.
Matches
12345 | 12345-6789
Non-Matches
1234 | 123456 | 12345-123 | 12345-12345
Author Rating: The rating for this expression. tedcambron
Title Test Details Social Security Number
Expression
^(?!000)(?!666)(?!9)\d{3}([- ]?)(?!00)\d{2}\1(?!0000)\d{4}$
Description
Updated SSN regex. A very simple one for verifying a properly formatted US social security number. First three digits must be 001 - 899 and not 666. Disallows all zeros in a group.
Matches
123-45-6789
Non-Matches
123-45 6789 | 1234-56-7890 | 123-00-7890
Author Rating: The rating for this expression. tedcambron
Title Test Details Date
Expression
^(\d{4}(?:(?:(?:\-)?(?:00[1-9]|0[1-9][0-9]|[1-2][0-9][0-9]|3[0-5][0-9]|36[0-6]))?|(?:(?:\-)?(?:1[0-2]|0[1-9]))?|(?:(?:\-)?(?:1[0-2]|0[1-9])(?:\-)?(?:0[1-9]|[12][0-9]|3[01]))?|(?:(?:\-)?W(?:0[1-9]|[1-4][0-9]5[0-3]))?|(?:(?:\-)?W(?:0[1-9]|[1-4][0-9]5[0-3])(?:\-)?[1-7])?)?)$
Description
This is a regular expression to check for a properly formatted date according to the international date and time notation ISO 8601. Remember, this is just for the date. See ISO 8601 specification for more information.
Matches
ISO 8601 date format
Non-Matches
non-ISO date format
Author Rating: The rating for this expression. tedcambron
Title Test Details Time
Expression
^([0-2][0-4](?:(?:(?::)?[0-5][0-9])?|(?:(?::)?[0-5][0-9](?::)?[0-5][0-9](?:\.[0-9]+)?)?)?)$
Description
This is a regular expression to check for a properly formatted time according to the international date and time notation ISO 8601. See ISO 8601 specification for more information.
Matches
24 | 24:00 | 23:59:59 | 235959
Non-Matches
25 | 24:60
Author Rating: The rating for this expression. tedcambron
Title Test Details Randal L. Schwartz
Expression
^(Randal (?:L\.)? Schwartz|merlyn)$
Description
This regex looks for Randal.
Matches
Randal L. Schwartz | merlyn
Non-Matches
Randy Smith | Arthur
Author Rating: Not yet rated. tedcambron
Title Test Details Query String Regex
Expression
^((?:\?[a-zA-Z0-9_]+\=[a-zA-Z0-9_]+)?(?:\&[a-zA-Z0-9_]+\=[a-zA-Z0-9_]+)*)$
Description
This is a very simple regex that check the query part of a string. That is to say anything after the "?" at the end of an URL.
Matches
?key=value | ?key1=value1&key2=value2
Non-Matches
key=value | ?key=value&
Author Rating: The rating for this expression. tedcambron
Title Test Details URL Validator
Expression
^(http(?:s)?\:\/\/[a-zA-Z0-9]+(?:(?:\.|\-)[a-zA-Z0-9]+)+(?:\:\d+)?(?:\/[\w\-]+)*(?:\/?|\/\w+\.[a-zA-Z]{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&[\w]+\=[\w\-]+)*)$
Description
A simple but powerful URL validating regex. Accepts multiple sub-domains and sub-directories. Even accept query strings. Now accept ports! Accepts HTTP or HTTPS. Also accepts optional "/" on end of address.
Matches
http://website.com | http://subdomain.web-site.com/cgi-bin/perl.cgi?key1=value1&key2=value2
Non-Matches
http://website.com/perl.cgi?key= | http://web-site.com/cgi-bin/perl.cgi?key1=value1&key2
Author Rating: The rating for this expression. tedcambron
Title Test Details Email Validator
Expression
^([a-zA-Z0-9]+(?:[.-]?[a-zA-Z0-9]+)*@[a-zA-Z0-9]+(?:[.-]?[a-zA-Z0-9]+)*\.[a-zA-Z]{2,7})$
Description
After reading RFC2822 (then taking two asprin) I've come to the conclusion that I will not allow all RFC compliant email addresses to be entered in the forms on my website and will never have an issue with it. I demand a stricter tolerance for my website than RFC allows. If you're like me and only want to allow 99% of those email addresses entered into web-forms then use this little gem of an email checking regex. Also, I've never met anyone who would submit an email address taking full advantage of RFC2822's allowances nor would I care to accommodate one who would.
Matches
name@email.com
Non-Matches
_name@.email.com
Author Rating: The rating for this expression. tedcambron
Title Test Details Image URL
Expression
^(http\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?(?:[a-zA-Z0-9_])+\.(?:jpg|jpeg|gif|png))$
Description
A nice little regex to verify a URL pointing towards an image. Can be useful.
Matches
http://website.com/directory/image.gif
Non-Matches
www.website.com/image.php
Author Rating: Not yet rated. tedcambron
Title Test Details String and dot
Expression
^[a-zA-Z0-9\.\s]{3,}$
Description
This expression check the input of simple text string from a-z,A-Z and number from 0 to 9 and the dot(.). But the minimum insert is of 3 character.
Matches
abc.123 | .abc | 123.
Non-Matches
12 | a1 | @#%&£"^
Author Rating: Not yet rated. Lucasweb
Title Test Details Pattern Title
Expression
^(\d+|(\d*\.{1}\d{1,2}){1})$
Description
This was written for quick entry on a timecard system. It allows you to create a number with an option of 2 decimal places. I have the digits left of the decimal unrestricted for this example, but in the real world of time keeping, you wouldn't surpass 3 digits on the left of the decimal.
Matches
4000 | 40.25 | .75
Non-Matches
-5.2 | 40.258 | 9,325
Author Rating: The rating for this expression. Ian Suttle
Title Test Details Pattern Title
Expression
(?i:)(?<=\.)\D\D(?:-\D{2,3}?(?:-\D\D\D\D)?)?(?=.resx) #Just change the extension if you want to take a Culture out of different type of file name. #The result will always be of the format: #(2CharacterLanguage)-(2or3CharacterLocale)-(4CharacterScript) #where the second or third set are optional #this matches the format of the CultureInfo object in Microsoft .NET
Description
This expression pulls the Culture name out of a .resx file name.
Matches
blah.is.en.resx | something.zh-CHS.resx | something.uz-UZ-Cyrl.resx
Non-Matches
blah.is.eee.resx | something.zh-X.resx | something.uz-UZ-Uz.resx
Author Rating: Not yet rated. Eric Falsken
Title Test Details US Phone Number
Expression
^1?[-\. ]?(\(\d{3}\)?[-\. ]?|\d{3}?[-\. ]?)?\d{3}?[-\. ]?\d{4}$
Description
US Phone number with optional leading 1, optional area code, and optional delimiters (hyphen, space or period)
Matches
18005551212 1.800.555.1212 1-800-555-1212 (800)555-1212 8005551212 800-555-1212 800.555.1212 5551212 555-1212 555.1212
Non-Matches
2-800-555-1212 55-51212 551212 15551212
Author Rating: The rating for this expression. Jason Kittredge
Title Test Details Pattern Title
Expression
([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)
Description
Matches
yahoo-m@yahoo.com
Non-Matches
yahoo@_yahoo@.com
Author Rating: Not yet rated. jawa adi
Title Test Details Egypt Mobile Last update 11 numbers
Expression
^01[0-2]{1}[0-9]{8}
Description
Regular Expression for Egypt Mobile Network [ Last update 11 numbers ]
Matches
01022334455 | 01122334455 | 01222334455
Non-Matches
0102233445 | 01322334455 | m0122234455
Author Rating: The rating for this expression. Eng Mohamed Momtaz
Title Test Details Email
Expression
[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*
Description
Email Regular exprasion
Matches
patu@gmail.com,dhfsgd@juiu.edu.pk
Non-Matches
nfsdf,123 sffs
Author Rating: Not yet rated. Muhammad Noaman Akram
Title Test Details version number validation
Expression
^((\d)?(\d{1})(\.{1})(\d)?(\d{1})){1}$
Description
This simple regular expression comes handy when we need to validate a version number of a document. The version numbers can have decimals upto two decimal places
Matches
2.22,99.99
Non-Matches
999.99,9.999,ab.cd
Author Rating: Not yet rated. venugopal
Change page:   |    Displaying page 430 of 456 pages; Items 8581 to 8600

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