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

Change page:   |    Displaying page 27 of 36 pages; Items 2601 to 2700
Title Test Details Pattern Title
Expression
.*[\$Ss]pecia[l1]\W[Oo0]ffer.*
Description
Spam stopper
Matches
$pecia1 0ffer
Non-Matches
na
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
.*[Vv][Ii1]agr.*
Description
Spam Stopper
Matches
V1agra
Non-Matches
na
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
.*[Oo0][Ee][Mm].*
Description
Spam Stopper
Matches
OEM | 0em
Non-Matches
na
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
.*\$AVE|\$ave.*
Description
Spam Stopper
Matches
$ave
Non-Matches
save
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
.*[Pp]re[Ss\$]cr[iI1]pt.*
Description
Spam Stopper
Matches
Pre$criptions
Non-Matches
na
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
.*[Pp]en[Ii1][\$s].*
Description
Spam Stopper
Matches
penis
Non-Matches
na
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
(À|Á|Â|Ã|Ä|Å|à|á|â|ã|ä|å|a|A|@|@|α|À|Á|Â|Ã|Ä|Å|À|Á|Â|Ã|Ä|Å|à|á|â|ã|ä|å|à|á|â|ã|ä|å)
Description
spam stopper, catches non english language flocks for letter A
Matches
ENLÃRGMENT | àll new | eãsy go
Non-Matches
ENLARGMENT | all new | easy go
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
(È|É|Ê|Ë|è|é|ê|ë|E|e|È|É|Ê|Ë|È|É|Ê|Ë|è|é|ê|ë|è|é|ê|ë)
Description
Spam stopper, catches non english characters used in flocks.
Matches
Ëvery one | Ënlargëmênt | bêst ëver
Non-Matches
Every one | Enlargement | best ever
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
(¡|Ì|Í|Î|Ï|ì|í|î|ï|!|¡|¡|¹|¹|¦|Ì|Í|Î|Ï|ì|í|ï|Ì|Í|Î|Ï|ì|í|î|ï|I|i)
Description
Spam stopper, catches any non english characters for i used in flocks
Matches
ínvest today | Îs your | ïnto debt
Non-Matches
invest today | Is your | into debt
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
(Ò|Ó|Ô|Õ|Ö|Ø|ð|ò|ó|ô|õ|ö|ø|0|O|o|Ò|Ó|Ô|Õ|Ö|Ø|Ò|Ó|Ô|Õ|Ö|Ø|ò|ó|ô|õ|ò|ó|ô|õ|ö|ø)
Description
Spam stopper, catches any non english characters used for o in flocks
Matches
Ônly $20 | Øne tô Óne | gõing today
Non-Matches
Only $20 | One to one | going today
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
(Ù|Ú|Û|Ü|ù|ú|û|ü|µ|U|u|µ|µ|Ù|Ú|Û|Ü|Ù|Ú|Û|Ü|ù|ú|ûü|ù|ú|û|ü)
Description
Spam stopper, catches any non english characters for u used in flocks
Matches
Üsúally $40 | únless you act | µpper limit
Non-Matches
Usually $40 | unless you act | upper limit
Author Rating: Not yet rated. Alanski Perryman
Title Test Details Pattern Title
Expression
^[-+]?\d+(\.\d+)?|[-+]?\.\d+?$
Description
Matches
100.00 | +100.00 | -100.00
Non-Matches
abc
Author Rating: Not yet rated. Donald Schneider
Title Test Details Pattern Title
Expression
^(\d|,)*\d*$
Description
matches 0 and all positive integers only. will accept comma formatting only.
Matches
1234 | 1,234 | 1,234,567
Non-Matches
1234.0 | -1234 | $1234
Author Rating: The rating for this expression. Donald Schneider
Title Test Details Full ISO8601 DateTime
Expression
\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])(?:.\d{7})?[+|-](0[0-9]|1[0-2]):(00|15|30|45)
Description
Complete date-time format according to the ISO 8601 standard.
Matches
2004-10-31T22:06:00+12:00 | 2006-04-31T12:31:39.6230000+05:45 | 2009-01-08T20:25:26-03:00
Non-Matches
2009-01-09T12:23:34 | 2009-01-09 17:45:22 | 2009-05-32T12:67:23-15:00 | 2009-13-32T25:76:23
Author Rating: Not yet rated. Otavio
Title Test Details to accept only alphanumeric with all special characters
Expression
^[^-]{1}?[^\"\']*$
Description
to accept only alphanumeric with all special characters except (double/single Quotes). and if numbers then only positive numbers
Matches
65 ghf, 65% - consumed, hello, 64 - 56
Non-Matches
-65 ghf, -164, 65% - "consumed"
Author Rating: Not yet rated. Prasanna Kumar
Title Test Details Pattern Title
Expression
([^a-zA-Z0-9])
Description
(Corrected) This pattern will match 1 instance of a NON-alphanumeric character. This is very handy to use when y ou want to filter input only by alphanumeric characters, by using Regex.Replace. However, when used in a Regex.Replace, it will replace all instances of non-alphanumeric characters with specified character.
Matches
Test! | This will match | H3llo$
Non-Matches
Test | Thiswillnotmatch | H3llo
Author Rating: Not yet rated. Shane Sukul
Title Test Details UK Telephone Numbers
Expression
^(((\+|00)?44|0)([123578]{1}))(((\d{1}\s?\d{4}|\d{2}\s?\d{3})\s?\d{4})|(\d{3}\s?\d{2,3}\s?\d{3})|(\d{4}\s?\d{4,5}))$
Description
Validates UK phone numbers based on the Wikipedia page http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom including the international dialing code 0044/+44/44
Matches
0XX XXXX XXXX | 0XXX XXX XXXX | 0XXXX XXXXXX
Non-Matches
04XXX XXXXXX | 06XXX XXXXXX | 0XXXXXXX
Author Rating: Not yet rated. Paul Verhulpen
Title Test Details Non localised currency format
Expression
^(\d?)*\.?(\d{1}|\d{2})?$
Description
Expression to validate currency formatted numbers without the currency symbol. This is an updated version of my previous expression and now works in ASP.NET regular expression validators.
Matches
153 | 33.48 | 786.1 | 1567863483.33
Non-Matches
-123 | 8524.258 | eo45
Author Rating: The rating for this expression. Paul Verhulpen
Title Test Details Valid Medicare HIC number
Expression
(?![A-Z](\d)\1{5,})(^[A-Z]{1,3}(\d{6}|\d{9})$)|(^\d{9}[A-Z][0-9|A-Z]?$)
Description
Matches valid Medicare HIC number according to CMS specifications
Matches
H123456 | XYZ123456789 | 123456789B
Non-Matches
H123 | H999999 | H1234XB
Author Rating: The rating for this expression. Brian Thiessen
Title Test Details clipvn
Expression
clipvn
Description
[CLIPVN]Put Clip.vn URL Here[/CLIPVN]
Matches
http://clip.vn/w/zL8a
Non-Matches
http://clip.vn/w/
Author Rating: Not yet rated. halflife
Title Test Details clipvn
Expression
clipvn
Description
[CLIPVN]Put Clip.vn URL Here[/CLIPVN]
Matches
http://clip.vn/w/zL8a
Non-Matches
http://clip.vn/w/
Author Rating: Not yet rated. halflife
Title Test Details Pattern Title
Expression
^(0[1-9]|1[0-2])\/((0[1-9]|2\d)|3[0-1])\/(19\d\d|200[0-3])$
Description
This expression is an attempt to match the most obvious features of a valid date in American/US format of the form mm/dd/yyyy for any year 1900 through 2003. It can easily be adapted for different date ranges. It matches any date where the day part is any number 01-31, the month part is any number 01-12, and the year part is any number 1900-2003. The only invalid dates that it matches are ones where the day part may be in the range 01-31 but that range might not be valid for the specified month. An example of an invalid date that it would allow to pass through would be 11/31/2002. This date is invalid because 11/31 of any year does not exist, but this expression would allow it pass through since the day part is in the range 01-31. This regular expression has been used successfully in ASP with VBScript using the windows scripting library RegExp object.
Matches
12/31/2003 | 01/01/1900 | 11/31/2002
Non-Matches
1/1/2002 | 01/01/02 | 01/01/2004
Author Rating: Not yet rated. Josh Bailyr
Title Test Details 6 Month Payday Loans @ everydaypaydayloansukdirectlenders.co.uk
Expression
http://www.everydaypaydayloansukdirectlenders.co.uk/6-month-payday-loans.html
Description
people who are living on the benefit provided by the government for striving their various day today expenses for when it became nearly impossible to deter the bad credit without having nay financial support. So to help theses individual to fight against the bad credit and consolidate their debts in an easy manner the lender have introduced the 6 month payday loans @ http://www.everydaypaydayloansukdirectlenders.co.uk/6-month-payday-loans.html. It helps in individual in providing the required amount that will help them in arranging the funds which help them to carry out their personal need and requirements on time. It helps the individual who are living on the benefits to deter the 1 month payday loan tags such as CCJ, IVA, late payments, skipped installments, arrears, bankruptcy, delays, insolvency etc can easily apply for it and helps in improving their credit ratings and sustain normal life. For availing money in this the lender ask the individual to meet certain obligation like that of holding the permanent citizenship of UK, age must be of 18 years and above, must be living on the DSS benefit for the past 6 months and must be holding a valid checking account that help them in availing the cash without much inconvenience. 1 Year Loans direct lenders loans Addison Taylor teaches the people about how to avail loans and use them. To find 6 month payday loans, 1 month payday loan, 1 Year Loans, direct lenders loans. You need to visit, http://www.everydaypaydayloansukdirectlenders.co.uk/
Matches
http://www.everydaypaydayloansukdirectlenders.co.uk/1-month-loans.html
Non-Matches
http://www.everydaypaydayloansukdirectlenders.co.uk/1-year-loans.html
Author Rating: Not yet rated. DanielExek
Title Test Details Everyday Loans @ http://www.everydaypaydayloansukdirectlenders.co.uk/
Expression
14 Day loans act as a great savior for you. These loans are especially framed for bad credit holders who are looking for finance on a very urgent basis. Through these loans they can fetch same day financial assistance at the time of emergency regardless of having impaired credit status.
Description
Individual at times when are in need of instant cash you, find where to go and in this situation individual is clue less to what should they do. Individual at times when are in need of instant cash it is not always advisable to turn to fens all the time individual owing to awful credit sore is not possible to go to the lenders in applying for it .so as in this situation the individual can take eth help of the everyday loans @ http://www.everydaypaydayloansukdirectlenders.co.uk/everyday-loans.html which will provide the applicant the required amount of money to fill their immediate cash requirements. It is means for that applicant who is running short of cash when their next payday is still so far. Amount that individual will be able to get through short term loans UK @ http://www.everydaypaydayloansukdirectlenders.co.uk/7-day-short-term-loans.html from £100-£1500 which needs to be refund by the applicant within 6-10 months. With help of the amount individual can settle their household bills, rent of house, master card installments, organizing little parties and so on. The amount to be spent is not being interfered by the lenders. In order to avail money through this the borrower need to provide their salary slip, residence proof, recent bank statement and be an adult. It carries a higher rate of interest on it which can be compensated with proper search of the lenders who will lend the individual the required money at reasonable rates of interest. Find More Information to visit at: http://www.everydaypaydayloansukdirectlenders.co.uk/!!
Matches
http://www.everydaypaydayloansukdirectlenders.co.uk/everyday-loans.html
Non-Matches
http://www.everydaypaydayloansukdirectlenders.co.uk/7-day-short-term-loans.html
Author Rating: Not yet rated. DanielExek
Title Test Details Strings for IndustryType/Functional Areas
Expression
^([a-zA-Z0-9])+(([a-zA-Z0-9\s])+[_-//&a-zA-Z0-9]([a-zA-Z0-9\s])+)*([a-zA-Z0-9])+$
Description
This validates for Strings for Various Industry Types / Functional Areas. Useful in case of Validation for diferent Inputs Related.This RegEx allows following characters as seprator_ - / & and white spaces
Matches
IT - Software/Testing, Electronic/Electronic & Telecommunication
Non-Matches
Electronic/Electronic &_ Telecommunication, Software//SoftwareTesting
Author Rating: Not yet rated. Amol Pande
Title Test Details Mobile No Validation
Expression
^((\+)?(\d{2}[-]))?(\d{10}){1}?$
Description
This Pattern is to Validate Mobile Number with 10 digit Number and Countrycode as Optional.
Matches
+91-9822345654,9822345654
Non-Matches
+923-9855777897,6463466
Author Rating: Not yet rated. Amol Pande
Title Test Details Telephone Number Validation (with Area Code)
Expression
^((\+)?(\d{2})[-])?(([\(])?((\d){3,5})([\)])?[-])|(\d{3,5})(\d{5,8}){1}?$
Description
Telephone Number Validation with Country code Optional but Mandatory Area Code.
Matches
+91-020-2344533,020-2344533.+91-(020)-2344533,-(020)-2344533
Non-Matches
5444474445,
Author Rating: Not yet rated. Amol Pande
Title Test Details Pattern for Login Id
Expression
^([a-zA-Z](?:(?:(?:\w[\.\_]?)*)\w)+)([a-zA-Z0-9])$
Description
This Pattern is used to validate Login Name with . and _ seprators only.
Matches
amey_p, swars.k, anand5_king, addy_tom.16
Non-Matches
_amol.p, raj__vega5, 4aman_p, ashish..p
Author Rating: Not yet rated. Amol Pande
Title Test Details single Email Id Validation
Expression
^[a-zA-Z]([a-zA-Z[._][\d]])*[@][a-zA-Z[.][\d]]*[.][a-z[.][\d]]*
Description
This Pattern used to Validate single Email Address .with first character as Alphabate and allowing . and _ as seprator more that once.
Matches
amol_pande@rediffmail.com, sachin.patin@yahoo.co.in, raj55_Dec83@yahoo.co.in, am.4_be4@rediff.com
Non-Matches
2_ash@in.com, a_be4@rediff.com
Author Rating: Not yet rated. Amol Pande
Title Test Details Pattern Title
Expression
^((31(?!\ (Apr(il)?|June?|(Sept|Nov)(ember)?)))|((30|29)(?!\ Feb(ruary)?))|(29(?=\ Feb(ruary)?\ (((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])\ (Jan(uary)?|Feb(ruary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sept|Nov|Dec)(ember)?)\ ((1[6-9]|[2-9]\d)\d{2})$
Description
Matches
21 feb 2004
Non-Matches
30 feb2004
Author Rating: Not yet rated. anil agarwal
Title Test Details Match unanchored urls in unstructured text
Expression
\b((?<!["'>])(?:https?://)?(?<![-@>])(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])\.)+(?:com|org|net|gov|mil|biz|info|name|aero|mobi|jobs|museum|[A-Z]{2})(?:/[-A-Z0-9\/_.]+)?(?:\?[-A-Z0-9&\._%=,]+)?(?!['"<]))\b
Description
Use this regex to match urls (including folder, file and querystring) in unstructured text that are not in anchor tags. Replace with <a href="$1">$1</a> to create anchor tags.
Matches
www.shschools.org/community/ethics_conference.html?s=keyword
Non-Matches
<a href="www.shschools.org/community/ethics_conference.html?s=keyword">www.shschools.org/community/ethics_conference.html?s=keyword</a>
Author Rating: Not yet rated. Bob Clark
Title Test Details Pattern Title
Expression
^(ht|f)tp(s?)\:\/\/[a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+){2,}(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$
Description
Cheap and cheerful URL checker. Requires a http/https/ftp at the start and will then allow anything starting with at least a &lt;something&gt;.&lt;something&gt;.&lt;something&gt; then valid characters separated by dots and slashes
Matches
http://www.thedaddy.org | http://forum.thedaddy.org/index.html | ftp://hows.it.going_buddy/checkit/o
Non-Matches
www.thedaddy.org | http://hello | ftp://check.it
Author Rating: The rating for this expression. John Main
Title Test Details CeliacManagement
Expression
Celiac management
Description
Celeac management
Matches
Celiac management
Non-Matches
Management of Celiac
Author Rating: The rating for this expression. Ed McDevitt
Title Test Details CeliacManagement
Expression
Celiac management
Description
Celiace management
Matches
Celiac management
Non-Matches
Non Match
Author Rating: Not yet rated. Ed McDevitt
Title Test Details Symptoms
Expression
xxx@xxx.com
Description
Symptoms
Matches
xxx@xxx.com | xxx.xxx@xxx
Non-Matches
xxx@.com
Author Rating: Not yet rated. Ed McDevitt
Title Test Details Match Text in square braces
Expression
(?<=[[]).*?(?=[]])
Description
Match Text in square braces
Matches
I love [INDIA]
Non-Matches
i love india
Author Rating: Not yet rated. Praveen
Title Test Details Regular Expression for dd MMM yyyy date format with leap year
Expression
Date Format in dd MMM yyyy ----> (^(3[01]|[12][0-9]|0?[1-9])\s{1}(Jan|Mar|May|Jul|Aug|Oct|Dec)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(30|[12][0-9]|0?[1-9])\s{1}(Apr|Jun|Sep|Nov)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(2[0-8]|1[0-9]|0?[1-9])\s{1}(Feb)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(29)\s{1}(Feb)\s{1}([2468][048]00)$)|(^(29)\s{1}(Feb)\s{1}([3579][26]00)$)|(^(29)\s{1}(Feb)\s{1}([1][89][0][48])$)|(^(29)\s{1}(Feb)\s{1}([2-9][0-9][0][48])$)|(^(29)\s{1}(Feb)\s{1}([1][89][2468][048])$)|(^(29)\s{1}(Feb)\s{1}([2-9][0-9][2468][048])$)|(^(29)\s{1}(Feb)\s{1}([1][89][13579][26])$)|(^(29)\s{1}(Feb)\s{1}([/])([2-9][0-9][13579][26])$)
Description
It validates the leap year also
Matches
29 Feb 2000
Non-Matches
29/02/2000
Author Rating: Not yet rated. Amit
Title Test Details Regular Expression for dd MMM yyyy date format with leap year
Expression
Date Format in dd MMM yyyy ----> (^(3[01]|[12][0-9]|0?[1-9])\s{1}(Jan|Mar|May|Jul|Aug|Oct|Dec)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(30|[12][0-9]|0?[1-9])\s{1}(Apr|Jun|Sep|Nov)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(2[0-8]|1[0-9]|0?[1-9])\s{1}(Feb)\s{1}((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(29)\s{1}(Feb)\s{1}([2468][048]00)$)|(^(29)\s{1}(Feb)\s{1}([3579][26]00)$)|(^(29)\s{1}(Feb)\s{1}([1][89][0][48])$)|(^(29)\s{1}(Feb)\s{1}([2-9][0-9][0][48])$)|(^(29)\s{1}(Feb)\s{1}([1][89][2468][048])$)|(^(29)\s{1}(Feb)\s{1}([2-9][0-9][2468][048])$)|(^(29)\s{1}(Feb)\s{1}([1][89][13579][26])$)|(^(29)\s{1}(Feb)\s{1}([/])([2-9][0-9][13579][26])$)
Description
It validates the leap year also
Matches
29 Feb 2000
Non-Matches
29/02/2000
Author Rating: Not yet rated. Amit
Title Test Details Positive unsigned number with a decimal
Expression
^([1-9]+[0-9]*|\d*[.,]\d)$
Description
This RegEx allow every positive number except 0 with a limit of 1 decimal. You can use coma or dot.
Matches
51 | 0.5 | 14,7
Non-Matches
0 | .5 | 1.54 | 015 | ,4 | -1.5
Author Rating: Not yet rated. JLN SK8
Title Test Details eMail Search Pattern
Expression
^([_a-zA-Z0-9-]+\.[_a-zA-Z0-9-]*)\@((([a-zA-Z0-9-]{2,255})\.(ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|di|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|io|iq|ir|is|it|jo|jm|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|an|nc|ne|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sq|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zr|zw|arpa|arts|biz|com|edu|firm|gov|info|int|mil|nato|net|nom|org|rec|store|web))|((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])))$
Description
This Regular Expression searches for a valid eMail address. It uses a list of all the known top-level-domains to verify that the domain is correct. Also Possible to find the IP Address
Matches
john.doe@texas.com john_doe@texas.com john.doe@192.168.0.1 john_doe@192.168.0.1
Non-Matches
john.doe@123.123.123 john.does@256.123.256.123
Author Rating: The rating for this expression. Jan Philipp Madsen
Title Test Details File Path
Expression
^(([a-zA-Z]\:)|(\\))(\\{1}|((\\{1})[^\\]([^/:*?<>"|]*))+)$
Description
Checks for a valid Filepath, either located on a local drive or a UNC share on the network. Use the following string to include the regex within a XML defintion file: RegEx="^([a-zA-Z]\:)|(\\)(\\{1}|((\\{1})[^\\]([^/:*?&lt;&gt;&quot;|]*(?&lt;!\[\])))+)$"/> (encode the appropiate HTML characters like <,>," with the appropiate HTML codes < = (ampersand)lt; > = (ampersand)gt; " = (ampersand)quote;
Matches
C:\SomeFilePatt|\\SomeServer\SomeShare
Non-Matches
C:|\SomeServer
Author Rating: The rating for this expression. Jens K. Suessmeyer
Title Test Details Pattern Title
Expression
(?n:^(?=\d)((?&lt;month&gt;(0?[13578])|1[02]|(0?[469]|11)(?!.31)|0 ?2(?(.29)(?=.29.((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][ 26])|(16|[2468][048]|[3579][26])00))|(?!.3[01])))(?&lt;sep&gt;[-./ ])(?&lt;day&gt;0?[1-9]|[12]\d|3[01])\k&lt;sep&gt;(?&lt;year&gt;(1[6-9]|[2-9]\d )\d{2})(?(?=\x20\d)\x20|$))?(?&lt;time&gt;((0?[1-9]|1[012])(:[0-5] \d){0,2}(?i:\x20[AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$)
Description
Matches
02/27/2005
Non-Matches
02/29/2005
Author Rating: Not yet rated. Abhinav Gupta
Title Test Details Percentage
Expression
^(^(100{1,1}$)|^(100{1,1}\.[0]+?$))|(^([0]*\d{0,2}$)|^([0]*\d{0,2}\.(([0][1-9]{1,1}[0]*)|([1-9]{1,1}[0]*)|([0]*)|([1-9]{1,2}[0]*)))$)$
Description
This pattern is designed to allow user to enter percentage values.
Matches
100.00000000,0033.0000,45.55000,45.01
Non-Matches
45.020,0100.00,15.006
Author Rating: Not yet rated. vitthal Shinde
Title Test Details Pattern Title
Expression
((\d|([a-f]|[A-F])){2}:){5}(\d|([a-f]|[A-F])){2}
Description
Deisgned to verify a MAC address with hex values seperated by a colon.
Matches
00:00:39:F9:3C:59 | 00:90:83:6A:B3:B7 | 00:00:39:59:30:5C
Non-Matches
00:0H:39:59:30:5C | 00:39:59:30:5C | 00:39:59:30:5C:BZ
Author Rating: Not yet rated. Jason Jenisch
Title Test Details Pattern Title
Expression
(?<!\\)\[(\\\[|\\\]|[^\[\]]|(?<!\\)\[.*(?<!\\)\])*(?<!\\)\]
Description
This regular expression will find the highest level groups within recursive tokens. For instance, if I have &quot;This is [just [an] example] of the [expression]&quot;, it'll find [just [an] example] and [expression], and nothing else. It will also not find an escaped bracket expression. If you want to replace the bracket with curly braces or parenthesis, be careful. As an example, curly braces will be: (?&lt;!\\)\{(\\\{|\\\}|[^\{\}]|(?&lt;!\\)\{.*(?&lt;!\\)\})*(?&lt;!\\)\}
Matches
[just] | [just [an] example]
Non-Matches
\[just]
Author Rating: Not yet rated. Joaquin Jares
Title Test Details US Phone with spaces only
Expression
(\+1 )?\d{3} \d{3} \d{4}
Description
This simple expression validates a USA phone number format where the +1 is required and that the phone number must only consist of numbers and spaces.
Matches
+1 808 555 1234
Non-Matches
808-555-1234 | +1 (808) 555-1234
Author Rating: Not yet rated. Suriya Supatanasakul
Title Test Details UK Phone with country code and area code
Expression
\+44\s\(0\)\s\d{2}\s\d{4}\s\d{4}
Description
Simple expression to validate a UK phone number including country code and area code. Requires spacing.
Matches
+44 (0) 55 4444 3333
Non-Matches
+44 (0) 5555555555 | 55 4444 3333
Author Rating: Not yet rated. Suriya Supatanasakul
Title Test Details Ireland phone number and country code
Expression
\+353\(0\)\s\d\s\d{3}\s\d{4}
Description
This simple expression evaluates an Ireland phone number. It requires the country code and dialing instructions for an international call plus spaces within the number.
Matches
+353(0) 5 444 3333
Non-Matches
+353(0) 55555555 | 5 444 3333
Author Rating: The rating for this expression. Suriya Supatanasakul
Title Test Details Remove Java/PHP/C++ style multiline comments
Expression
/\/\*[\d\D]*?\*\//
Description
If you are caching PHP code you may want to remove long comments from the code before caching it. This expression will remove all /* */ style comments.
Matches
/** A comment **/|/* A commment */| /* */
Non-Matches
// A comment|//
Author Rating: Not yet rated. Peter Darling
Title Test Details Iran Mobile No
Expression
^(((\+{1})|(0{2}))98|(0{1}))9[1-9]{1}\d{8}\Z$
Description
Checking Iran's mobile no with or without country code.
Matches
09124455444 00989124455444 +989124455444
Non-Matches
9124455444
Author Rating: The rating for this expression. vahidkh
Title Test Details Pattern Title
Expression
[v,V,(\\/)](\W|)[i,I,1,l,L](\W|)[a,A,@,(\/\\)](\W|)[g,G](\W|)[r,R](\W|)[a,A,@,(\/\\))]
Description
Spam trap Catches many and many way to write viagra (replacing letters with similar chars, spacing chars with one space, etc).
Matches
Viagra | v1@G R /\ | \/iagr@
Non-Matches
viaagra | vi agra | v1 gra
Author Rating: The rating for this expression. Sante Boscolo
Title Test Details Pattern Title
Expression
^0$|^[1-9][0-9]*$|^[1-9][0-9]{0,2}(,[0-9]{3})$
Description
I need a pattern to match the whole number / integer (0-99999...), but also allow users to put comma in the thousand positions. This is what I got.
Matches
1234 | 0 | 12,345
Non-Matches
12,3245 | -1 | 1234.23
Author Rating: The rating for this expression. Harry Chou
Title Test Details 32 bit unsigned integer
Expression
^(429496729[0-6]|42949672[0-8]\d|4294967[01]\d{2}|429496[0-6]\d{3}|42949[0-5]\d{4}|4294[0-8]\d{5}|429[0-3]\d{6}|42[0-8]\d{7}|4[01]\d{8}|[1-3]\d{9}|[1-9]\d{8}|[1-9]\d{7}|[1-9]\d{6}|[1-9]\d{5}|[1-9]\d{4}|[1-9]\d{3}|[1-9]\d{2}|[1-9]\d|\d)$
Description
Validates a 32bit integer from 0 through 4294967296 without leading zeros. An expansion of the 16 bit version http://regexlib.com/REDetails.aspx?regexp_id=1427
Matches
0, 32768, 4294967296, 11111
Non-Matches
-65535, 123.23, 4294967297, 01024
Author Rating: Not yet rated. David Nuss
Title Test Details South African Cell Phone Number
Expression
(^0[87][23467]((\d{7})|( |-)((\d{3}))( |-)(\d{4})|( |-)(\d{7})))
Description
only allows valid cell phones from south african service providers. to date i havent seen a cell phone number starting 079 or 089 but i think the networks might support it...
Matches
0848298477 | 084 829 8477 | 084-829 8477
Non-Matches
084829 8477
Author Rating: The rating for this expression. Chris Morton
Title Test Details south african phone number
Expression
[0](\d{9})|([0](\d{2})( |-)((\d{3}))( |-)(\d{4}))|[0](\d{2})( |-)(\d{7})
Description
validates south african phone numbers
Matches
0333872119 | 033 386162 | 074 101 2850
Non-Matches
033386 2612
Author Rating: The rating for this expression. Chris Morton
Title Test Details South African ID Number
Expression
(((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229))(( |-)(\d{4})( |-)(\d{3})|(\d{7}))
Description
Validates South African ID Numbers
Matches
771125 5047 081 | 771231-5046-081 | 7712315046081
Non-Matches
non valid id numbers
Author Rating: The rating for this expression. Chris Morton
Title Test Details Common English Stopwords for Search Engine
Expression
[\s]a[\s]|[\s]about[\s]|[\s]an[\s]|[\s]are[\s]|[\s]as[\s]|[\s]at[\s]|[\s]be[\s]|[\s]by[\s]|[\s]for[\s]|[\s]from[\s]|[\s]how[\s]|[\s]in[\s]|[\s]is[\s]|[\s]it[\s]|[\s]of[\s]|[\s]on[\s]|[\s]or[\s]|[\s]that[\s]|[\s]the[\s]|[\s]this[\s]|[\s]to[\s]|[\s]was[\s]|[\s]what[\s]|[\s]when[\s]|[\s]where[\s]|[\s]who[\s]|[\s]will[\s]|[\s]with[\s]|[\s]the[\s]|[\s]www[\s]
Description
use this to produce search strings in your programs that run more efficiently. use the replace of the regex class to remove the characters from the user input then use the resulting string to query the database...
Matches
matched words listed between the whitespace character class
Non-Matches
the words not included in the white space character class
Author Rating: The rating for this expression. Chris Morton
Title Test Details South African VAT registration number
Expression
((19|20)[\d]{2}/[\d]{6}/[\d]{2})
Description
Useful for verifying VAT Registration Numbers
Matches
2001/067995/23 | 1989/064445/73
Non-Matches
non-valid South African VAT Registration Numbers
Author Rating: The rating for this expression. Chris Morton
Title Test Details Extract Literal Text from HTML
Expression
<[\w\"\ '\#\* \=\',\.\\\(\)\/\-\$\{\}\[\]\|\*\?\+\^\&\:\%\;\!]+>
Description
This regular expression allows you to extract literal text from an HTML (SGML compliant?) document. i believe it will also work for XML. using code to replace the HTML element you can extract the literal text only.
Matches
Any html tag with or without attributes and events
Non-Matches
literal text
Author Rating: Not yet rated. Chris Morton
Title Test Details Local or International phone number with dialing code
Expression
[0](\d{9})|([0](\d{2})( |-|)((\d{3}))( |-|)(\d{4}))|[0](\d{2})( |-|)(\d{7})|(\+|00|09)(\d{2}|\d{3})( |-|)(\d{2})( |-|)((\d{3}))( |-|)(\d{4})
Description
allows validation of phone numbers in different formats, including local dialing code (eg 033 or 076) or international dialing code in the formats +12 or 0012 or 0912.
Matches
073-386-2612 , 0443862612 , 076 858 7777 , +27 76 858 7777 , 0027 765877777 , 0956 33 8881234
Non-Matches
invalid numbers
Author Rating: The rating for this expression. Chris Morton
Title Test Details c function
Expression
/\w+?\s\w+?\(([\w\s=]+,*|[\w\s=]+|(?R))*\);/
Description
A recursive PRCE regular expression that matches a c funtion with any number of parameters including 0 parameters. I.E: return fuction(); is the minimum it matches.
Matches
returntype function(int inc=1,void parameter);
Non-Matches
function();
Author Rating: Not yet rated. Martijn Laarman
Title Test Details .Net Framework Type Name
Expression
^(([A-Za-z][A-Za-z0-9.+]*?){1,}?)(,\s?([^/\\:*?"<>|]*((,\s?(Version=(\d\.?){1,4}|Culture=(neutral|\w{2}-\w{2})|PublicKeyToken=[a-f0-9]{16})(,\s?)?){3}|))){0,1}$
Description
Matches a .Net Framework type name. This expression also matches non-strong named types such as: Namespace.Class and Namespace.Class, Assembly
Matches
Namespace.Class, Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000
Non-Matches
Namespace.Class, Assembly, Version=1.0.0.0, Culture=neutral
Author Rating: Not yet rated. Justin Long
Title Test Details .Net Assembly Name (With Named Groups)
Expression
^(?<Assembly>(?<AssemblyName>[^\W/\\:*?"<>|,]+)(?:(?:,\s?(?:(?<Version>Version=(?<VersionValue>(?:\d{1,2}\.?){1,4}))|(?<Culture>Culture=(?<CultureValue>neutral|\w{2}-\w{2}))|(?<PublicKeyToken>PublicKeyToken=(?<PublicKeyTokenValue>[A-Fa-f0-9]{16})))(?:,\s?)?){3}|))$
Description
Matches a .Net assembly name and groups each part of the name using named groups (not supported by all regex engines).
Matches
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Non-Matches
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=INVALIDTOKEN
Author Rating: Not yet rated. Justin Long
Title Test Details .Net Framework Full Type Name (With Named Groups)
Expression
^(?<Namespace>(?:[\w][\w\d]*\.?)*)\.(?<Class>[\w][\w\d<>]*(?:(?:\+[\w][\w\d<>]*)+|))(?:|,\W?(?<Assembly>(?<AssemblyName>[^\W/\\:*?"<>|]+)(?:$|(?:,\W?(?:(?<Version>Version=(?<VersionValue>(?:\d{1,2}\.?){1,4}))|(?<Culture>Culture=(?<CultureValue>neutral|\w{2}-\w{2}))|(?<PublicKeyToken>PublicKeyToken=(?<PublicKeyTokenValue>[A-Fa-f0-9]{16})))(?:,\W?)?){3})))$
Description
Matches a full .Net type name and breaks all the parts of the type and assembly into named groups (not supported by all regex engines)
Matches
System.Collections.Generic.List<T>+Enumerator<T>, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Non-Matches
System.Int32,
Author Rating: Not yet rated. Justin Long
Title Test Details Email Address Format
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,4}|([a-zA-Z]\.com))$
Description
Validates format of email addresses including q.com but not q.net
Matches
a.b-c_d@x.y-z.zz
Non-Matches
xx@mm.c | x@n.cc | a..b@x-y.zz
Author Rating: Not yet rated. Fred Scott Thompson
Title Test Details HTML ID
Expression
/^([A-Za-z]){1}([A-Za-z0-9-_.\:])+$/
Description
Validate a proper HTML ID attribute. By definition, this must start with a letter, and only include letters, numbers, colons, underscores, hyphens and periods
Matches
site-section.1
Non-Matches
#section
Author Rating: Not yet rated. Alexander Ross
Title Test Details Address/Phone
Expression
^(\+{1}|00)\s{0,1}([0-9]{3}|[0-9]{2})\s{0,1}\-{0,1}\s{0,1}([0-9]{2}|[1-9]{1})\s{0,1}\-{0,1}\s{0,1}([0-9]{8}|[0-9]{7})
Description
Gulf Area and Middle East Phone Number, must include the country code which consists of 2 or 3 digits and prefixed with '+' or '00', Area code consists of 1 or 2 digits and finally phone number consists of 7 or 8 digits, you can separate between different section using space or '-'
Matches
+966 50 43211234, 00 966 - 50-4321123, +20212345678
Non-Matches
+ - 9665043214321, strings
Author Rating: Not yet rated. tamer mahfouz
Title Test Details Any character in multi-line modus
Expression
/[^]/m
Description
Use /[^]*/m instead of /.*/ A dot matches everything, but newline characters.
Matches
Everything
Non-Matches
Nothing
Author Rating: Not yet rated. Doeke Zanstra
Title Test Details Simple US Phone Numbers
Expression
(1)?-?\(?\s*([0-9]{3})\s*\)?\s*-?([0-9]{3})\s*-?\s*([0-9]{4})\s*
Description
A very simple regex to parse 10-digit US phone numbers. Captures the leading 1 in $1, the area code in $2, the 3-digit prefix in $3, and the four-digit postfix in $4. This expression DOES allow for reserved area codes (001,etc) which are not typically in use.
Matches
(123)456-7890 | 1234567890 | 123 456 7890 | 123-456-7890 | (123)4567890 | 123-4567890
Non-Matches
123456789 | (1234)567890 | (12-3)4567890
Author Rating: The rating for this expression. Jeff Chambers
Title Test Details Phone Number
Expression
^([a-zA-Z,#/ \.\(\)\-\+\*]*[0-9]){7}[0-9a-zA-Z,#/ \.\(\)\-\+\*]*$
Description
Very flexible phone number entry. -- There are many valid ways to enter a phone number, and often there is other data that a restrictive Regex pattern will not abide. -- This pattern accepts any number of letters, commas, pound signs, slashes, spaces, periods, parenthesis, hyphens, plus signs, and asterisks... but amongst it scans for a minimum of 7 digits (modify {7} to adjust the minimum number of required digits (i.e. 10 for area code + phone number, 18 for long international numbers). -- This pattern does not attempt to restrict the entered phone number format in any way, but instead just verfies that enough digits for one was entered. -- Data in excess of the 7 required digits is allowed. -- I've posted another submission that forces compliance for US phone numbers.
Matches
1234567 | 12345678 | (555) 987-6543 ext 210 | 999-666-7777-x1967
Non-Matches
123456 | 555-123
Author Rating: The rating for this expression. Tim N Tousley
Title Test Details US Phone Number
Expression
^([a-zA-Z,#/ \.\(\)\-\+\*]*[2-9])([a-zA-Z,#/ \.\(\)\-\+\*]*[0-9]){2}([a-zA-Z,#/ \.\(\)\-\+\*]*[2-9])([a-zA-Z,#/ \.\(\)\-\+\*]*[0-9]){6}[0-9a-zA-Z,#/ \.\(\)\-\+\*]*$
Description
Very flexible US phone number entry. -- There are many valid ways to enter a phone number, and often there is other data that a restrictive Regex pattern will not abide. -- This pattern accepts any number of letters, commas, pound signs, slashes, spaces, periods, parenthesis, hyphens, plus signs, and asterisks... but amongst it scans for a minimum of 10 digits, the first and fourth of which cannot be 0 or 1 (per US phone number standards in 2006). -- Data in excess of the 10 required digits is allowed.
Matches
987-654-3210 | (555) 555-1212 | (555) 487-1391 x652 | phn (555) 987-6743 ext. 21012
Non-Matches
123 456-7890 | (555) 000-1111
Author Rating: The rating for this expression. Tim N Tousley
Title Test Details Pattern Title
Expression
^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$
Description
Matches a valid email address including ip's which are rarely used. Allows for a-z0-9_.- in the username, but not ending in a full stop i.e user.@domain.com is invalid and a-z0-9- as the optional sub domain(s) with domain name and a 2-7 char (a-z) tld allowing for short tld's like ca and new ones like museum.
Matches
username@domain.com | u-s_e.r1@s-ub2.domain-name.museum:8080 | user_name@123.123.123.12
Non-Matches
user@domain | user@domain.c | user.@domain.com
Author Rating: Not yet rated. nick bennett
Title Test Details Pattern Title
Expression
^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$
Description
Regular expression to match valid UK postcodes. In the UK postal system not all letters are used in all positions (the same with vehicle registration plates) and there are various rules to govern this. This regex takes into account those rules. Details of the rules: First half of postcode Valid formats [A-Z][A-Z][0-9][A-Z] [A-Z][A-Z][0-9][0-9] [A-Z][0-9][0-9] [A-Z][A-Z][0-9] [A-Z][A-Z][A-Z] [A-Z][0-9][A-Z] [A-Z][0-9] Exceptions Position - First. Contraint - QVX not used Position - Second. Contraint - IJZ not used except in GIR 0AA Position - Third. Constraint - AEHMNPRTVXY only used Position - Forth. Contraint - ABEHMNPRVWXY Second half of postcode Valid formats [0-9][A-Z][A-Z] Exceptions Position - Second and Third. Contraint - CIKMOV not used
Matches
DN3 6GB | SW42 4RG | GIR 0AA
Non-Matches
SEW4 5TY | AA2C 4FG | AA2 4CV
Author Rating: Not yet rated. Stuart Wade
Title Test Details Comma separated numbers
Expression
^([0-9]*)+(,[0-9]+)+$
Description
This regular expression is used to validate only comma separated numbers.
Matches
100,200,300
Non-Matches
100,200,
Author Rating: The rating for this expression. Prashant Vedpathak
Title Test Details Pattern Title
Expression
&lt;[aA][ ]{0,}([a-zA-Z0-9&quot;'_,.:;!?@$&amp;()%=/ ]|[-]|[ \f]){0,}&gt;((&lt;(([a-zA-Z0-9&quot;'_,.:;!?@$&amp;()%=/ ]|[-]|[ \f]){0,})&gt;([a-zA-Z0-9&quot;'_,.:;!?@$&amp;()%=/ ]|[-]|[ \f]){0,})|(([a-zA-Z0-9&quot;'_,.:;!?@$&amp;()%=/ ]|[-]|[ \f]){0,})){0,}
Description
I wrote this sweet little (well, not so little really) reg to extract links from an HTML source.... it is very robust, give it a try. The only limitation I have discovered is that it can't match invalid HTML...
Matches
&lt;a href='javascript:functionA();'&gt;&lt;i&gt;this text is italicized&lt;/i&gt;&lt;/a&gt;
Non-Matches
&lt;A href='#'&gt;&lt;P&lt;/A&gt;&lt;/P&gt;
Author Rating: The rating for this expression. Brian Webb
Title Test Details Match a string containing at least 2 numbers and at least 6 alphabetic
Expression
(?=(.*\d.*){2,})(?=(.*[a-zA-Z].*){6,})
Description
Check password containing at least x numbers and y alphabetic. Use look back expression (?= )
Matches
abc2de2f, 2kdfd223df
Non-Matches
2abcdefgh, 9abc32de232
Author Rating: Not yet rated. Longge Ruan
Title Test Details Host name
Expression
[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*(?:\.[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)*
Description
Multi-part host name validator, RFC-compliant but does not validate length of components or overall length
Matches
localhost www.example.com host-1234.example.com
Non-Matches
localhost. -1234.example.com
Author Rating: The rating for this expression. Kevin Dean
Title Test Details HTTP(S) URL
Expression
https?://[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*(?:\.[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)*/\S*
Description
HTTP(S) URL validator with embededded multi-part host name validator, RFC-compliant but does not validate length of components or overall length. Path portion after host name is free-form and will need refinement if you want to validate it.
Matches
http://www.example.com/ https://localhost/whatever
Non-Matches
http://www.example.com ftp://localhost/whatever
Author Rating: Not yet rated. Kevin Dean
Title Test Details Email address
Expression
[A-Za-z0-9!#$%&'*+\-/=?^_`{|}~]+(?:\.[A-Za-z0-9!#$%&'*+\-/=?^_`{|}~]+)*@[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*(?:\.[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)*
Description
Email address validator with embededded multi-part host name validator, RFC-compliant but does not validate length of components or overall length.
Matches
mike@localhost sue@example.com
Non-Matches
mike @localhost sue.@example.com
Author Rating: Not yet rated. Kevin Dean
Title Test Details ISO Date with leap
Expression
^(((19|20)(([0][48])|([2468][048])|([13579][26]))|2000)[\-](([0][13578]|[1][02])[\-]([012][0-9]|[3][01])|([0][469]|11)[\-]([012][0-9]|30)|02[\-]([012][0-9]))|((19|20)(([02468][1235679])|([13579][01345789]))|1900)[\-](([0][13578]|[1][02])[\-]([012][0-9]|[3][01])|([0][469]|11)[\-]([012][0-9]|30)|02[\-]([012][0-8])))$
Description
This regex match dates in the international standard date notation by ISO (IS0 8601). It can validate any dates between 1900-01-01 and 2099-12-31 ant take account of leap years. The format is mandatory and the hyphen is needed. You could easily change it to accept other separators. It has been tested with Regex Coach and PHP.
Matches
1900-01-01 | 2099-12-31 | 2004-02-29
Non-Matches
20060526 | 1900-02-29 | 2100-01-01
Author Rating: Not yet rated. Michel Chouinard
Title Test Details Pattern Title
Expression
^(^(([0-9A-F]{1,4}(((:[0-9A-F]{1,4}){5}::[0-9A-F]{1,4})|((:[0-9A-F]{1,4}){4}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,1})|((:[0-9A-F]{1,4}){3}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,2})|((:[0-9A-F]{1,4}){2}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,3})|(:[0-9A-F]{1,4}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,4})|(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,5})|(:[0-9A-F]{1,4}){7}))$|^(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,6})$)|^::$)|^((([0-9A-F]{1,4}(((:[0-9A-F]{1,4}){3}::([0-9A-F]{1,4}){1})|((:[0-9A-F]{1,4}){2}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,1})|((:[0-9A-F]{1,4}){1}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,2})|(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,3})|((:[0-9A-F]{1,4}){0,5})))|([:]{2}[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,4})):|::)((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{0,2})\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{0,2})$$
Description
Matches all IPv6 text representations as defined within RFC 2373. Fairly verbose
Matches
::0:0:0:FFFF:129.144.52.38 | FEDC:BA98::3210:FEDC:BA98:7654:3210 | ::13.1.68.3
Non-Matches
FEDC:BA98:7654:3210:FEDC:BA98:7654:3210:1234 | 3210:FEDC:BA98:7654:3210:1234 | :FEDC:BA98:7654:3210:
Author Rating: Not yet rated. Glynn Beeken
Title Test Details OAGIS Phone
Expression
^\+[0-9]{1,3}\([0-9]{3}\)[0-9]{7}$
Description
The OAGIS standard has a format for phone and fax as +###(###)#######. For details on standard see the open applications group.
Matches
+555(555)5555555 | +1(800)5555555
Non-Matches
555
Author Rating: Not yet rated. rob livermore
Title Test Details Pattern Title
Expression
([^\.\?\!]*)[\.\?\!]
Description
Finds sentences (assuming they end with a full stop, question mark or exclamation mark).
Matches
This is a series of sentences. They end predictably! Where would we be without punctuation?
Non-Matches
This sentence just trails off
Author Rating: Not yet rated. Mike Reeves-McMillan
Title Test Details Pattern Title
Expression
(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])
Description
Validates time in MySQL time format. 24 hour time colon seperated hours:minutes:seconds
Matches
09:30:00 | 17:45:20 | 23:59:59
Non-Matches
24:00:00
Author Rating: The rating for this expression. Patrick O'Hara
Title Test Details Phones - Portugal
Expression
^(9|2{1})+([1-9]{1})+([0-9]{7})$
Description
A regex for phone numbers in Portugal. For the three major operators (TMN, Optimus, Vodafone) and landline number. 1 number (2/9) + 1 number (1-9) + 7 others (0-9).
Matches
265000000 960000000 930000000 910000000 920000000
Non-Matches
95xxxxxxx 200xxxxxx 900000000
Author Rating: The rating for this expression. Pedro Fernandes
Title Test Details Polish mobile phone numbers
Expression
^(\+48\s+)?\d{3}(\s*|\-)\d{3}(\s*|\-)\d{3}$
Description
Supported: +48 prefix (optional); separating elements with hyphen or spaces
Matches
+48 500-080-100 | 500080100 | 500 080 100
Non-Matches
+47 100-100-100 | 1000-100-100 | 1000000000
Author Rating: Not yet rated. Andrzej Mroczek
Title Test Details Pattern Title
Expression
^\$?([1-9][0-9]{3,}(\.\d{2})?|(\d{1,3}\,\d{3}|\d{1,3}\,\d{3}(\.\d{2})?)|(\d{1,3}\,\d{3}|\d{1,3}\,\d{3}\,\d{3}(\.\d{2})?)*)?$
Description
Currency which cannot be less than $1000 and lower than a billion.
Matches
$1000 | $1,000,000.00 | 9,999
Non-Matches
999.00 | $1,000,000,000.00 | 5.00
Author Rating: Not yet rated. tim glenn
Title Test Details Email - regex
Expression
fgfgfgfgfgf
Description
This is the regex to validate email address.
Matches
abc@gmail.com,abc.abc@gmail.com, abc_abc@abc1.com,abc.123@gmail.com,abc123@gmail.com
Non-Matches
abc.abc@gmail.c, abc22@zbcd.gmail.com
Author Rating: Not yet rated. wainually
Title Test Details RFC2822 Compliant Email Check
Expression
^(([-\w$%&'*+\/=?^_`{|}~.]+)@(([-a-zA-Z0-9_]+\.)*)([-a-zA-Z0-9]+\.)([a-zA-Z0-9]{2,7}))?$
Description
RFC2822 compliant email matching regex that doesn't assume TLDs are set for all time. Clearly this means that someone could get a 2 letter country code wrong, but since no TLD is set in stone, I prefer to match future possibilities as well. This also conforms to what traditional DNS can do w/r/t hostnames and domain names.
Matches
john.o'malley@mail.example.org
Non-Matches
aoluser1
Author Rating: The rating for this expression. David Kearns
Title Test Details Pattern Title
Expression
^(([0]?[1-9]|[1][0-2])[\/|\-|\.]([0-2]\d|[3][0-1]|[1-9])[\/|\-|\.]([2][0])?\d{2}\s+((([0][0-9]|[1][0-2]|[0-9])[\:|\-|\.]([0-5]\d)\s*([aApP][mM])?)|(([0-1][0-9]|[2][0-3]|[0-9])[\:|\-|\.]([0-5]\d))))$
Description
MM-DD-20YY HH:MM AP MM-DD-20YY H:MM AP MM-DD-20YY HH:MM MM-DD-20YY H:MM MM-DD-YY HH:MM AP MM-DD-YY H:MM AP MM-DD-YY HH:MM MM-DD-YY H:MM M-D-YY HH:MM AP M-D-YY H:MM AP M-D-YY HH:MM M-D-YY H:MM where - can be / or - or . where : can be : or - or . Definition: ^( ;Start of Line ([0]?[1-9]|[1][0-2]) ;00-09 or 10-12 or 1-9 [\/|\-|\.] ;/ or - or . ([0-2]\d|[3][0-1]|[1-9]) ;00-29 or 30-31 or 1-9 [\/|\-|\.] ;/ or - or . ([2][0])?\d{2} ;2000-2099 or 00-99 \s+ ;one or more spaces ( ;must be either 12H notation w/AM|PM ( ([0][0-9]|[1][0-2]|[0-9]) [\:|\-|\.] ;: or - or . ([0-5]\d) ;01 thru 59 \s* ;zero or more spaces ([aApP][mM])? ;nothing or AM or PM (case insensitive) ) | ;or 24H notation w/out AM|PM ( ([0-1][0-9]|[2][0-3]|[0-9]) ;00-19 or 20-23 [\:|\-|\.] ;: or - or . ([0-5]\d) ;00-59 ) ) )$ ;End of Line
Matches
01/01/2002 04:42 | 5-12-02 04:42 AM | 01.01/02 04-42aM
Non-Matches
01-12-1999 4:50PM | 01-12-2002 15:10PM | 01-12-002 8:20PM
Author Rating: Not yet rated. Bob Duffett
Title Test Details Pattern Title
Expression
^(([8]))$|^((([0-7]))$|^((([0-7])).?((25)|(50)|(5)|(75)|(0)|(00))))$
Description
Time off hours edit for quarter hour(s) less than eight.
Matches
0.25 | 7.75 | 8
Non-Matches
8.25 | 7.15 | 0.15
Author Rating: Not yet rated. Bob Kranson
Title Test Details RFC3986 Generic URI
Expression
^([a-zA-Z][a-zA-Z0-9+-.]*):((\/\/(((([a-zA-Z0-9\-._~!$&'()*+,;=':]|(%[0-9a-fA-F]{2}))*)@)?((\[((((([0-9a-fA-F]{1,4}:){6}|(::([0-9a-fA-F]{1,4}:){5})|(([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){4})|((([0-9a-fA-F]{1,4}:)?[0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){3})|((([0-9a-fA-F]{1,4}:){0,2}[0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){2})|((([0-9a-fA-F]{1,4}:){0,3}[0-9a-fA-F]{1,4})?::[0-9a-fA-F]{1,4}:)|((([0-9a-fA-F]{1,4}:){0,4}[0-9a-fA-F]{1,4})?::))((([0-9a-fA-F]{1,4}):([0-9a-fA-F]{1,4}))|(([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5])))))|((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})?::[0-9a-fA-F]{1,4})|((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})?::))|(v[0-9a-fA-F]+\.[a-zA-Z0-9\-._~!$&'()*+,;=':]+))\])|(([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5])))|(([a-zA-Z0-9\-._~!$&'()*+,;=']|(%[0-9a-fA-F]{2}))*))(:[0-9]*)?)((\/([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))*)*))|(\/?(([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))+(\/([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))*)*)?))(\?(([a-zA-Z0-9\-._~!$&'()*+,;=':@\/?]|(%[0-9a-fA-F]{2}))*))?((#(([a-zA-Z0-9\-._~!$&'()*+,;=':@\/?]|(%[0-9a-fA-F]{2}))*)))?$
Description
Manually derived this from the grammar in Appendix A of RFC3986 (Uniform Resource Identifier (URI): Generic Syntax). Matches anything that fits the generic syntax of a URI. Supports IPv6 hosts.
Matches
http://user:pwd@domain.com:123/dir/subdir/?qp1=v%d3&qp2=98#frag | http://192.168.0.0:123/dir/subdir/?qp1=v%d3&qp2=98#frag | svn+ssh://[D456::1234:4321]:123/dir/subdir/?qp1=v%d3&qp2=98#frag
Non-Matches
http://user:pwddomain.com:123/dir/subdir/?qp1=v%d3&qp2=98#frag | http://192.168.0.0:123/dir/subdir/?qp1=v%d&qp2=98#frag | svn+ssh://[D456::12344321]:123/dir/subdir/?qp1=v%d3&qp2=98#frag
Author Rating: Not yet rated. James Lentini
Title Test Details Name
Expression
[-'a-zA-Z]
Description
Best For First Name or Middle Name or Last Name This Expression Allows only alphabets with apostrophe (').
Matches
Jhon's
Non-Matches
0-9 and Special Characters
Author Rating: Not yet rated. Dilip Nikam
Title Test Details Russian phone numbers
Expression
((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
Description
pattern for processing phone (phones) numbers (Russia)
Matches
+7(916)9985670, 8-912-268-5440, 8905148-3339, 8(913)448-51-90, 903-345-34-34, 903-34-334-34, 903-34-33434, 8(34543)54-4-56
Non-Matches
x
Author Rating: The rating for this expression. bask
Title Test Details Zero excluding money amount
Expression
((0)+(\.[1-9](\d)?))|((0)+(\.(\d)[1-9]+))|(([1-9]+(0)?)+(\.\d+)?)|(([1-9]+(0)?)+(\.\d+)?)
Description
Zero excluding money amount
Matches
0.01, 0.10, 123.00, 46
Non-Matches
0, 0.0, 0.00, -1, -10.23. 11.234
Author Rating: Not yet rated. bask
Title Test Details Sentence parsing
Expression
(?<word>([\w]*))(?<prep>([\,\.\!\?\-\:\;\""\(\)])?)
Description
Parse the sentence to separated words and signs of preposition.
Matches
Куропатка упала, тяжело дыша.
Non-Matches
None
Author Rating: Not yet rated. bask
Title Test Details Address analyzer
Expression
(?<street>((\d+\-)?[?-?\.]* )*)(?<IsStreet>((?????)|(????????)|(??-?)|(?-?)|(??-?)|(???????)|(???[ \.]?)|(???(?:\.)?)|(?(?:\.)?)|(??\.)|(???(?:\.)?)|(??(?:\.)?))) *(?<street2>[?-?]{2,} )?(?:?\.?)?(?<home>\d+[?-?]?)([ -/?]+(???)?(?<building>\d+)[ -/](?<flat>\d+))*([ -/](??\.? ?)?(?<flat>\d+))?
Description
Analises the complex address string
Matches
ГОЛОВАНОВА МАРШАЛА УЛИЦА Д.14 42 СТАЛЕВАРОВ Ул. 18 2 81
Non-Matches
КРИВОРОЖСКАЯ 17-71
Author Rating: Not yet rated. bask
Title Test Details Search sentences with words ending by -тся/-ться
Expression
([^\.]*?(\w+(???|????))[^\.]*?\.+)\s+
Description
Search sentences with words ending by -???/-????
Matches
Работа с регулярными выражениями является частью повседневной работы системного администратора. Смеркается. Кто-то едет в отпуск, кто-то выбирается на дачи за город. Эта машина мне нравиться.Эта машина мне нравится.
Non-Matches
Кандидат BSDA должен быть способен искать текстовые шаблоны при анализе вывода программ или поиске в файлах. Кандидат должен знать, где указывается диапазон символов в скобках [], определять литерал (?!), использовать квантификаторы, отличать метасимволы и создавать инвертированные фильтры.
Author Rating: Not yet rated. bask
Title Test Details Range validator
Expression
^([A-Z0-9?.+-])+([,]([A-Z0-9?.+-])+)*$
Description
This Expression validates alfanumeric values. This was created to validate a range of values that could start with ?. It is case sensitive, this means the characters need to be uppercase.
Matches
?-MM1, 45.NN2-45.NN50,C015+,?,NA
Non-Matches
?-mm1,N/A,"C001+,"
Author Rating: Not yet rated. Carlos Perez
Title Test Details Serial Numbers
Expression
^([A-Z0-9?.+-])+([,]([A-Z0-9?.+-])+)*$
Description
This expresion validates ranges of serial numbers
Matches
AC20, NA,ALL
Non-Matches
All
Author Rating: Not yet rated. Carlos Perez
Change page:   |    Displaying page 27 of 36 pages; Items 2601 to 2700

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