RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
\w+[\w-\.]*\@\w+((-\w+)|(\w*))\.[a-z]{2,3}$|^([0-9a-zA-Z'\.]{3,40})\*|([0-9a-zA-Z'\.]+)@([0-9a-zA-Z']+)\.([0-9a-zA-Z']+)$|([0-9a-zA-Z'\.]+)@([0-9a-zA-Z']+)\*+$|^$
Description
This regular expression is for admitting wild card searches on Emails the wild card character is * and in my case will only allow to do the search when the * is place after the first 3 alphanumeric characters. If you need to modify this behavior change the {3,40} to {n,m} where n is how many characters before the * and m is the total number if characters.
Matches
jdh* | jss.js* | [email protected]
Non-Matches
j* | js*
Author Rating: Not yet rated. Julio de la Yncera
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
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

Title: Only works on tld's
Name: Peter Nunn
Date: 7/6/2004 5:11:22 AM
Comment:
This does not work on domains from non top level's such an .com.au etc. Peter.


Title: JOse luis
Name: jose
Date: 6/19/2004 1:29:31 AM
Comment:
hola


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