Jump to content

.net Regex For Email Field ...help


Recommended Posts

Posted

currently this is the regex validating the email id field

^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9]( ?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?( ?:\.[a-zA-Z0-9]( ?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$

^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$

this doesnt accept @ in the username...but accepts . in the user name....i shud make a change to this regex to not accept '.'(period) i the username of email id

Posted

or if anyone can explain how this regex works(like how its constructed) that will also be helpfull

Posted

try this regex 

filterEmail = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+[A-Za-z0-9\-]+\.)+([a-zA-Z0-9]{2,4})+$/; 
Posted

regexper.com   lo  adhi paste chey, you will get some idea,,, i see  dot at two places  ,  you might need to remove it

Posted

regexper.com   lo  adhi paste chey, you will get some idea,,, i see  dot at two places  ,  you might need to remove it

Posted

@ mundu inni symboles accept chesthundi????? email lo ivvani accept chesthunaraaa???

 

 

One of:-“a”“z”-“A”“Z”-“0”“9”“.”“!”“#”“$”“%”“&”“'”“*”“+”“/”“=”“?”“^”“_”“`”“{”“|”“}”“~”“- 

Posted

@ mundu inni symboles accept chesthundi????? email lo ivvani accept chesthunaraaa???

 

 

One of:-“a”“z”-“A”“Z”-“0”“9”“.”“!”“#”“$”“%”“&”“'”“*”“+”“/”“=”“?”“^”“_”“`”“{”“|”“}”“~”“- 

yeah somekind of crappy bussiness rules.... but @ mundhu unnavi anni accept chetshunnata daani meaning?

Posted

@ mundu inni symboles accept chesthundi????? email lo ivvani accept chesthunaraaa???

 

 

One of:-“a”“z”-“A”“Z”-“0”“9”“.”“!”“#”“$”“%”“&”“'”“*”“+”“/”“=”“?”“^”“_”“`”“{”“|”“}”“~”“- 

too many accepting i guess..  A-Za-z0-9_.  enough anukunta. depends on company emo 

Posted

too many accepting i guess..  A-Za-z0-9_.  enough anukunta. depends on company emo 

adhe naku ardham kaledhu...nenu two times confirm chesukunna "." common kada  ante....vallu no we dont accept period annaru

 

indhulo inko bug undhi...@ tarvatha full email domain type cheyyakunna its accepting

like test@gmail is comming true

Posted

currently this is the regex validating the email id field

^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9]( ?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?( ?:\.[a-zA-Z0-9]( ?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$

^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$

this doesnt accept @ in the username...but accepts . in the user name....i shud make a change to this regex to not accept '.'(period) i the username of email id

^[a-zA-Z0-9.!#$%&'*+\/=?^_`@{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$

@ aa starting special character expressions lo ledu baa... ippudu add chesa after =?_'... its accepting.. it.......test it here http://www.regexr.com/

×
×
  • Create New...