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

Change page:   |    Displaying page 1 of 37 pages; Items 1 to 20
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 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 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 Regular Expression to validate file path and extension
Expression
^(?:[\w]\:|\\)(\\[a-z_\-\s0-9\.]+)+\.(txt|gif|pdf|doc|docx|xls|xlsx)$
Description
Regular Expression to validate file path and extension.Compatible with JavaScript and ASP.NET
Matches
\\192.168.0.1\folder\file.pdf | \\192.168.0.1\my folder\folder.2\file.gif | c:\my folder\abc abc.docx | c:\my-folder\another_folder\abc.v2.docx
Non-Matches
\\192.168.0.1\folder\fi/le.pdf | \\192.168.0.1\folder\\file.pdf | \\192.168.0.1\my folder\folder.2\.gif | c:\my folder\another_folder\.docx | c:\my folder\\another_folder\abc.docx | c:\my folder\another_folder\ab*c.v2.docx | c:\my?folder\another_folder\abc.v2.docx | file.xls
Author Rating: Not yet rated. Bryian Tan
Title Test Details Pattern Title
Expression
^((?-i:0x)?[A-Fa-f0-9]{32}| [A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}| \{[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}\})$
Description
Validates a GUID/UUID, without capture, to the following patterns: [{hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh}], [hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh],[hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh],[0xhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh], where 'h' is a valid hex character. This last pattern is a binary format commonly used with SQL Server 2000. It allows you to use binary(n) and varbinary(n) parameters that convert well to unique identifier. Please note that this is not case sensitive EXCEPT the 'x' in the binary pattern. It must be lower case.
Matches
6F9619FF-8B86-D011-B42D-00C04FC964FF | 0x6F9619FF8B86D011B42D00C04FC964FF | {6F9619FF-8B86-D011-B42D
Non-Matches
{6F9619FF8B86D011B42D00C04FC964FF} | 0X6F9619FF8B86D011B42D00C04FC964FF
Author Rating: The rating for this expression. Patrick Fogarty
Title Test Details Phone Number
Expression
([+]?\d[ ]?[(]?\d{3}[)]?[ ]?\d{2,3}[- ]?\d{2}[- ]?\d{2})
Description
Validate Russian phone number (mobile, landline) that accept a space, a dash between the numbers.
Matches
88002345675 | +7 (960) 000 00 00 | +7(4855)23-34-56
Non-Matches
+7(4855)23.34.56 | 7 4855 aaa 234 526 | 8(232)_232_23_12
Author Rating: The rating for this expression. Sergei Lewandowski
Title Test Details Swedish personnummer with accepted foreigners
Expression
^[0-9]{6}-[0-9pPtTfF][0-9]{3}$
Description
Other Swedish personnummer regexps do not take into account that at Swedish universities, foreigners might get special temporary personnummers with a "P", "T", or "F" instead of the first of the four last numbers. This code fixes the problem, but does not check the validity of the date, or the last number.
Matches
123456-1234 | 123456-P234 | 123456-f234
Non-Matches
123456-12 | 1234561234 | 123456
Author Rating: Not yet rated. Petter Terenius
Title Test Details Pattern Title
Expression
^[A-Za-z]{1,2}[\d]{1,2}([A-Za-z])?\s?[\d][A-Za-z]{2}$
Description
UK Postal Codes - The code is normally written in capital letters with a space between the outer and inner parts; it is understandable if the space is omitted. This regular expression validates upper or lower case with or without the space:
Matches
CF1 2AA | cf564fg
Non-Matches
a1234d | A12 77Y
Author Rating: Not yet rated. Scott Pite
Title Test Details Indian Mobile No
Expression
^((\+){0,1}91(\s){0,1}(\-){0,1}(\s){0,1}){0,1}9[0-9](\s){0,1}(\-){0,1}(\s){0,1}[1-9]{1}[0-9]{7}$
Description
This expression is to validate indian mobile nos
Matches
9836193498 +919836193498 9745622222
Non-Matches
+9197456222222 8745622222 9836193481
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$
Description
To validate a number of 10 digits before the decimal point and atmost 2 digits after it
Matches
12314 12314.2 12314.32
Non-Matches
12314.212 12123.222
Author Rating: Not yet rated. Nilarka Prasanna Das
Title Test Details Pattern Title
Expression
^[1-9][0-9]{3}\s?[a-zA-Z]{2}$
Description
Validates Dutch Postal Codes (ZipCode). There was a previous one listed here, but it's not entirely correct. Namely that dutch postal codes can contain a zero but cannot start with one, so this one is the adjusted version.
Matches
1234AB | 1234 AB | 1001 AB
Non-Matches
0123AB | 1234A B | 0123 AB
Author Rating: Not yet rated. Jos Krause
Title Test Details Pattern Title
Expression
^(((ht|f)tp(s?))\://)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*$
Description
Version 1.3.0: I needed a regexp to validate URL's without the ht(f)tp(s):// and include North American domains (like .us and .ca) and there didn't seem to be one available...so I created one. It will also work with ASP QueryStrings and anchor URL's. If you have a problem with the expression or have any suggestions to improve, please write me and let me know. Added .uk domain and expression now allows for URLs that contain JSP session IDs. 4/14/04 - added ability to include URLs that start with server names.
Matches
www.blah.com:8103 | www.blah.com/blah.asp?sort=ASC | www.blah.com/blah.htm#blah
Non-Matches
www.state.ga | http://www.blah.ru
Author Rating: The rating for this expression. Brad Dobyns
Title Test Details Validate Egyptian Mobile Phone Numbers
Expression
^01[0-2]\d{8}$
Description
Validate Egyptian Mobile Phone Numbers only Valid Format is 01#########
Matches
011######## | 012######## | 010########
Non-Matches
013######## | 12######## | 0114## | 014########
Author Rating: Not yet rated. Ahmed Samy
Title Test Details German numerical Strings w & w/o interpunctation
Expression
(?:^(?:-)?(?:\d{1,3}\.(?:\d{3}\.)*\d{3})(?:\,\d+)?$|^(?:-)?\d*(?:\,\d+)?$)
Description
This validation forces a value wheter to be strict niced or plain input of a numerical value. The separation per thousand should be a (.) dot and must be used exactly or never to be valid. Currently this RX validates german formed values... Just switch \, with \. and vice versa to get valid US results.
Matches
10000|12.123|5.123,000|,001|1.000.000|1,00
Non-Matches
1.0000|12.12.00|5,123.000|.001|1,000,000|1.00
Author Rating: Not yet rated. Lars Echterhoff
Title Test Details HH:MM:SS AM|PM
Expression
^(|(0\d)|(1[0-2])):(([0-5]\d)):(([0-5]\d))\s([AP]M)$
Description
This will validate only time.
Matches
11:59:59 AM, 00:59:59 PM
Non-Matches
13:59:59, 11:45:60
Author Rating: Not yet rated. Kiran
Title Test Details 日期验证
Expression
((19|20)[0-9]{2})-(([1-9])|(0[1-9])|(1[0-2]))-((3[0-1])|([0-2][0-9])|([0-9]))
Description
Validate the year month and day.
Matches
2008-12-15
Non-Matches
1556/9/8
Author Rating: Not yet rated. shenruiwen
Change page:   |    Displaying page 1 of 37 pages; Items 1 to 20

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