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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details For checking 1 email id
Expression
^\s*(([\w-]+\.)+[\w-]+|([a-zA-Z]{1}|[\w-]{2,}))@(\w+\.)+[A-Za-z]{2,5}$
Description
Created by me.It works in almost all the normal cases.
Matches
afae@erew.com, rfew@fwe.co.in, dqweqw@fwertfwe.museum
Non-Matches
werew@rtre.c, efgtre@wtg., .wer@rtre.cn, were..wrfw@wewer.com, eewq.weqw.@ewrew.com, spaces not at the beginning
Author Rating: Not yet rated. AJ
Title Test Details For checking 1 or more email ids
Expression
"^\s*((([\w-]+\.)+[\w-]+|([a-zA-Z]{1}|[\w-]{2,}))@(\w+\.)+[A-Za-z]{2,5}[?= ]?[?=,;]?[?= ]?)+?$"
Description
Created by me.Allows for checking 1 mail id or more.If more than 1 it should be separated by a , or ; and or space.
Matches
Ignore the brackets - (rfew@fwe.cn,afae@erew.com) (rfew@fwe.cn;afae@erew.com) (rfew@fwe.cn afae@erew.com) (rfew@fwe.cn , afae@erew.com) (rfew@fwe.cn ;afae@erew.com)
Non-Matches
(.wer@rtre.cn) (gffg d@sdgsdg.com)
Author Rating: Not yet rated. AJ
   Displaying page 1 of 1 pages; Items 1 to 2

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