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

Change page:   |    Displaying page 214 of 234 pages; Items 4261 to 4280
Title Test Details Short Email
Expression
^.+@[^\.].+\.[a-z]{2,}(\.[a-z]{2,}$|$)
Description
Simple email validator. Should cover most emails.
Matches
abc@test.com | abc@test.com.br | a.b_c@test.com.br
Non-Matches
abc@.test.com | abc@test. | abc@test.com.
Author Rating: Not yet rated. Heitor Neiva
Title Test Details Proper Names
Expression
[A-Z][a-zA-Z]+ [A-Z][a-zA-Z]+
Description
Find proper names in the form John Doe
Matches
John Doe|Jeff Tart|Sally Tong
Non-Matches
rebecca Hart|Joe|Jeff bridges
Author Rating: Not yet rated. Kevin Gravier
Title Test Details Currency with two decimals
Expression
^\$\d{1,3}(,?\d{3})*(\.\d{2})?$
Description
Looks for a number which can be optionally comma separated at thousands and may or may not have two decimal places. Tweaking: 1. Replace the \$ symbol with your currency. 2. Toggle , and . as separators (Some European countries follow this convention) 3. Mandate comma separation by removing the ? after ,
Matches
$333,444,444,555.99
Non-Matches
$333,444,444,55
Author Rating: Not yet rated. Hareesh
Title Test Details DEA Number
Expression
^\S{2}\d{7}$
Description
A DEA number is a number assigned to a health care provider (such as a medical practitioner, dentist, or veterinarian) by the U.S. Drug Enforcement Administration. This regex validates correct format
Matches
AB1234567
Non-Matches
AB 1234567, AB12345678, 12345678
Author Rating: Not yet rated. Tim Claason
Title Test Details SSN (US Social Security Number)
Expression
(?!000)(?!666)^([0-8]\d{2})(\d{2})(\d{4})$
Description
Validates SSN for INTEGERS ONLY. This does not allow spaces or dashes. Following this info: http://www.socialsecurity.gov/employer/randomization.html Starting in June 2011, the SSA will begin randomizing SSN creation. The only exclusions are SSNs beginning with 000, 666, or 900-999. That rather simplifies things.
Matches
001191873 | 667191873 | 899191873
Non-Matches
000191873 | 666191873 | 901191873
Author Rating: Not yet rated. Robert Helm
Title Test Details mm/dd/yyyy hh:MM DateTime, time obligatory
Expression
(?n:^(?=\d)((?<day>31(?!(.0?[2469]|11))|30(?!.0?2)|29(?(.0?2)(?=.{3,4}(19|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(16|[2468][048]|[3579][26])00))|0?[1-9]|1\d|2[0-8])(?<sep>[/.-])(?<month>0?[1-9]|1[012])\2(?<year>(19|[2-9]\d)\d{2})(?:(?=\x20\d)\x20|$))?(?<time>([01]\d|2[0-3])(:[0-5]\d){1})$)
Description
Based on Michael Ash's expression. This regex will validate only datetime, not only date or only time. Dates are in the DD/MM/YYYY HH:mm format and validated for months, number of days in a month and leap years (29/2) Date field can be separated by matched periods(.), dashes(-) or forward slashes(/). Year range 1900-9999 Time is in 24 hour military format (HH:mm:SS), from 00:00:00 to 23:59:59, where hours and minutes fields are required, including leading 0 for hours less than 10. Datetime is the above date and time formats separated by a space, with the date first (DD/MM/YYYY HH:mm) !IMPORTANT NOTE: your regex engine must support lookaheads and named groups to use this expression
Matches
1/31/2002 10:59 | 2/29/2004 11:03
Non-Matches
1/32/2002 10:59 | 2/29/2003 11:03
Author Rating: Not yet rated. Wouter Hibma
Title Test Details Pattern Title
Expression
(^[A-Za-z])|(\s)([A-Za-z])
Description
This expression will return the first letter of each word in a string. Best used if you need to get initials from a name. &quot;James Kramer&quot; = &quot;J K&quot; &amp; &quot;Sir Richard Branson&quot; = &quot;S R B&quot; &amp; &quot;33 yoYo 654 ma&quot; = &quot;y m&quot;
Matches
James Kramer | Sir Richard Branson | 33 yoYo 654 ma
Non-Matches
33 66 4ju
Author Rating: The rating for this expression. J D
Title Test Details US & Canadian Zip Code for Input
Expression
^(\d{5})$|^([a-zA-Z]\d[a-zA-Z]( )?\d[a-zA-Z]\d)$
Description
Created for input validation of major part of zip code. Normal Canadian entry has an optional space between the first group of three and the second group. Original pattern taken from Steven Smith and modified for our entries.
Matches
12345|A6A 6A6|A6A6A6
Non-Matches
aaaaa|6A6A6A
Author Rating: Not yet rated. Jeff Finley
Title Test Details Pattern Title
Expression
[:;]{1}[-~+o]?[(&lt;\[]+
Description
I searched for a smiley expression but couldn't find one. This one should find all the usual ways of writing the sad emotion icon.
Matches
:o( | :+&lt; | ;-((
Non-Matches
:) | :/
Author Rating: The rating for this expression. Ullrich Clemenz Canaan
Title Test Details Pattern Title
Expression
[:]{1}[-~+o]?[)&gt;]+
Description
This ist the Expression for a happy smiley. It should find all the usual writings of the emotion icon :)
Matches
:))))) | :+&gt; | :o)
Non-Matches
;o) | :-(
Author Rating: The rating for this expression. Ullrich Clemenz Canaan
Title Test Details Currency
Expression
^\$([0]|([1-9]\d{1,2})|([1-9]\d{0,1},\d{3,3})|([1-9]\d{2,2},\d{3,3})|([1-9],\d{3,3},\d{3,3}))([.]\d{1,2})?$|^\(\$([0]|([1-9]\d{1,2})|([1-9]\d{0,1},\d{3,3})|([1-9]\d{2,2},\d{3,3})|([1-9],\d{3,3},\d{3,3}))([.]\d{1,2})?\)$|^(\$)?(-)?([0]|([1-9]\d{0,6}))([.]\d{1,2})?$
Description
Matches number with optional commas and decimal places. Allows only max 7 digits before decimal and max 2 digits after decimal. Does not allow numbers beginning with 0 e.g., $0,234,567 but allows $0.05
Matches
($1,234,567.89) | $1,234,567.89 | $1234567.89 | $-1234567.89
Non-Matches
$1,234,567.890 | $12345678.90 | $023,456.78
Author Rating: Not yet rated. Ali Salman
Title Test Details Age Validation 18 to 99
Expression
^(1[89]|[2-9]\d)$
Description
Validates age range 18 - 99
Matches
18, 27, 98
Non-Matches
3, 102
Author Rating: The rating for this expression. Leonardo Soto
Title Test Details Pattern Title
Expression
^[\+\-]?\d+(,\d+)?$
Description
A simple expression for validate in .net RegularExpressionValidator.
Matches
65,50 | -45,5 | 10
Non-Matches
65.50 | -45.5 | 10a
Author Rating: Not yet rated. Diego Santos
Title Test Details RegExLib.com
Expression
^(www\.regxlib\.com)$
Description
Looking for Regular Expression Library
Matches
www.regxlib.com
Non-Matches
everything else
Author Rating: Not yet rated. Steven Smith
Title Test Details Iran Mobile Number
Expression
^((\+989)|(989)|(00989)|(09|9))([1|2|3][0-9]\d{7}$)
Description
This is any mobile in Iran validation MCI , Irancell , Rightel , Talia
Matches
9121234567 | +989121234567 | 989211234567 | 989121234567 | 0098935134567 | 09361234567
Non-Matches
+9361234567 | 08121234567
Author Rating: The rating for this expression. bahman khalafi
Title Test Details Calendar Date
Expression
^(0?[1-9]|1[012])/([012][0-9]|[1-9]|3[01])/([12][0-9]{3})$
Description
In month/day/year format. Matches valid months (1-12) and valid days (1-31) and a valid 4 digit year (from 1000-2999). $1 = month, $2 = day, $3 = year. Sadly, it doesn't check to make sure that months have a valid number of days (no Feb 30th checks, etc).
Matches
1/12/2003 | 04/8/1995 | 12/31/2035 | 5/06/1911
Non-Matches
13/04/2000 | 4/32/1593 | |5/6/98
Author Rating: Not yet rated. Kenaniah Cerny
Title Test Details https://greentoneproblog.net/natrogix-garcinia-cambogia/
Expression
DFdrg
Description
Natrogix Garcinia Cambogia There's not wish good, old H2O. It hydrates you - simply no extra sugar and fats! Drink water with your meals instead of soda or juice. And like every doctor says, drink at least 8 glasses an event. It will keep you healthy, make the skin look good and even keep you eating too much. So, drink up! https://greentoneproblog.net/natrogix-garcinia-cambogia/
Matches
grtg
Non-Matches
trgtr
Author Rating: Not yet rated. ben sexgyu
Title Test Details postal code dutch zipcode
Expression
\A[1-9][0-9]{3}([A-RT-Z][A-Z])|([S]([BC]|[E-R]|[T-Z]))\z
Description
Valid dutch zipcode
Matches
1079LK | 1014AG | 1066RT
Non-Matches
1079SS | 1079SA | 1079SD
Author Rating: Not yet rated. richard van haastrecht
Title Test Details Pattern Title
Expression
[^A-Za-z0-9_@\.]|@{2,}|\.{5,}
Description
Used as a username validation script requires: 1. Allows All Alphanumeric characters &amp; underscore 2. Allows One &quot;@&quot; character 3. Allows Five &quot;.&quot; periods 4. Rejects spaces
Matches
user name | user#name | .....
Non-Matches
User_Name1 | username@foo.com | user.name@mail.foo.com
Author Rating: Not yet rated. Theo Tillotson
Title Test Details Pattern Title
Expression
^(Function|Sub)(\s+[\w]+)\([^\(\)]*\)
Description
Updated, changed [\w]* to [\w]+ because pattern should not match Sub (), there would be no function name which would be incorrect. Will extract function declarations from ASP or also VB I assume. Will even capture declarations that break across new lines or ones that use the underscore(line continuation character) in Microsoft's VB, VBA, ASP, etc. Had to put this together to document some code on a project and didn't see anything like it on the web. I hope it helps out anyone else who has to re-engineer ASP or VB code.
Matches
Function MyFunc(Arg1, Arg2, Arg3, Arg4)
Non-Matches
'This is a comment for MyFunc(Arg1,Arg2,Arg3) and this regexp wouldn't work.
Author Rating: Not yet rated. James Fal
Change page:   |    Displaying page 214 of 234 pages; Items 4261 to 4280

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