- The first Regular Expression Library on the Web!

Please support RegExLib Sponsors


Regular Expression Details

Title Test Find Pattern Title
does not allow IP for domain name : hello@ does not allow litteral addresses "hello, how are you?" allows numeric domain names after the last "." minimum 2 letters
Matches | |
Non-Matches | he&llo@world.co1 |
Author Rating: The rating for this expression. bilou mcgyver
Your Rating
Bad Good

Enter New Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Date: 5/30/2017 1:03:55 PM
Comment: <a href="">Paharganj Escort</a> <a href="">Paharganj Escort</a> <a href="">Paharganj Escort</a>

Title: Book a Call Girls in Delhi 0000000000 Find an Escorts in Delhi & NCR
Name: Mayank
Date: 3/4/2017 10:38:08 AM
Comment: We have all type of Indian Housewife, Busty Female, Air Hostess, Hi profile Escorts as well as cheap Models, Independent, College Girls and Russian Escorts. Indian Housewife, Busty Female, Air Hostess, Hi profile Escorts as well as cheap Models, Independent, College Girls and Russian Escorts

Title: Connaught Place Escorts Call Girls
Name: Liza
Date: 2/22/2017 2:28:35 PM
Comment: Some Word of wisdom to our call girl lover, if you do right time to right job, if you are getting into depress and tension, you feel alone still have your wife or partner and want to get rid of these problem and want to live your life with fun and pleasure, then we have solution for all those people are having same time problem, we provide services, which you get feel like new born baby

Title: Astrology Zodiac Signs Information -
Name: JaxonKevin
Date: 7/22/2016 10:54:24 AM
Learn complete information about all 12 astrology zodiac signs nature, personality, character and love relationship. And you can also talk and chat with Indian best astrologer.

Title: Escorts in Gurgaon
Name: Archana Gupta
Date: 12/10/2015 2:16:02 PM
Mahipalpur Escorts 9818606141 Escorts service in mahipalpur Delhi offer wide range of call girls, escorts in Aerocity, mahipalpur in Delhi, Russian, Independent, and Model Escorts

Title: Escorts in Gurgaon
Name: Archana Gupta
Date: 12/7/2015 1:15:28 PM
Gurgaon escorts, escorts in Gurgaon, Gurgaon Escorts in Delhi – Rea Mishra- Female Escorts in New Delhi-Call +91-8826458966 for New Delhi Escorts who are beautiful Independent Escorts in New Delhi for your high pleasures get from New Delhi Escorts Service Agency. Escorts services in New Delhi, Escorts, Female Escorts, Russian Escorts

Title: Serviced Apartments Manchester –
Name: Quay Apartments
Date: 7/30/2015 5:58:40 AM
Quay apartments 08432892949 250 The Quays, Salford, Manchester M50 358 United Kingdom +44 161 225 1423 Hotels media city Salford Quays-

Title: Suggested Improvement
Name: Adiv
Date: 6/25/2015 11:13:42 PM
The expression can be made case insensitive with a mode switch preceding the pattern to be matched. Using (?i) before the regex enables [A-Za-z0-9] to be shortened to [a-z\d], replacing 0-9 with the shorthand \d. To match all characters in the class \w except an underscore (_), you can use character class subtraction: [\w-[_]] to replace the expression [A-Za-z0-9]

Title: rtytry
Name: rtyrty
Date: 6/21/2012 7:18:46 AM

Title: a problem with the pattern
Name: Giulio Di Gio Battista
Date: 11/12/2008 7:09:49 AM
by using the .net RegEx if you give "Arnet1006522192MAI@INTERCHEMISTRY" as input the method IsMatch will hang indefinetely Please let me know if you solve the problem Regards, Giulio Di Gio Battista (

Title: does not with gmail "+"
Name: keshar
Date: 10/1/2008 2:22:17 PM
gmail allows for the following: This was my fix: ^[A-Za-z0-9](([_\.\-\+]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$

Title: Finally!
Name: Love to avoid work!
Date: 8/9/2007 10:54:59 AM
Here's a regex that actually validates email addresses like this: Took a long time to find one that did (I'm lazy)

Title: Short and mathces +, - and _
Name: Juan Manuel Caicedo
Date: 3/6/2005 1:37:11 PM
I just fixed Chris' shorten regep to match +, - and _ (underscore) ^[\w](([_\.\-\+]?[\w]+)*)@([\w]+)(([\.-]?[\w]+)*)\.([A-Za-z]{2,})$

Title: fails on + too
Name: Lorrin
Date: 12/1/2004 5:50:34 PM
Comment: fails to match.

Title: what do you think of that regex?
Name: Matthias
Date: 10/28/2004 8:09:03 PM

Title: underscore problem
Name: Jan
Date: 9/24/2004 3:07:56 AM
Does not match valid e-mail addresses like oder

Title: Runs Too Long
Name: titltn21
Date: 9/3/2004 6:03:14 PM
Ran into an issue during testing. Performance took a major hit and actually took a box down. Test Case Results: Input a nonvalid email (only /w) and as the length grows so does the processing time as shown below. Testing this expression on produced similiar time outs. Below are the time stamped results when looping each test expression. NOW:[m].[s].[ms] 45.38.627 ...Processing Bad Email [11]ABCDE 45.38.697 ...Processing Bad Email [10]ABCDEABCDE 45.38.697 ...Processing Bad Email [9]ABCDEABCDEABCDE 45.38.707 ...Processing Bad Email [8]ABCDEABCDEABCDEABCDE 45.39.66 ...Processing Bad Email [7]ABCDEABCDEABCDEABCDEABCDE 45.50.561 ...Processing Bad Email [6]ABCDEABCDEABCDEABCDEABCDEABCDE [Case 6 too minutes to execute. 52-45=7 min] 52.41.144 ...Processing Bad Email [5]AB.DE 52.41.144 ...Processing Bad Email [4]AB.DEAB.DE 52.41.144 ...Processing Bad Email [3]AB.DEAB.DEAB.DE 52.41.144 ...Processing Bad Email [2]AB.DEAB.DEAB.DEAB.DE 52.41.144 ...Proc

Title: How close is this to what is valid for the RFC?
Name: Pete
Date: 9/2/2004 1:21:48 PM
How close is this to what is valid for the RFC for e-mail addresses? (I think it may be RFC 822 but not sure - you know thw one I mean)?

Title: Das
Name: Anamitra
Date: 5/21/2004 3:10:53 AM
The expression has worked fine for me

Title: rastas
Name: rastas
Date: 5/13/2004 4:09:30 PM

Title: Amazing
Name: Saleem Mirza
Date: 1/13/2004 2:57:57 AM

Title: Shorten this puppy...
Name: Chris
Date: 1/8/2004 7:40:39 PM
This regex can be shortened a bit by replacing all [a-zA-Z0-9] (or variant thereof) with \w. ^[\w](([_\.-]?[\w]+)*)@([\w]+)(([\.-]?[\w]+)*)\.([A-Za-z]{2,})$

Title: limit number of characters
Name: limiting_field
Date: 12/29/2003 3:41:19 PM
how do i limit this regexp to up to 10 characters in length? i tried ^([A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})){0,10}$ and that didnt work

Copyright © 2001-2017, | ASP.NET Tutorials