dotnetrockz Posted March 10, 2015 Report Posted March 10, 2015 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
dotnetrockz Posted March 10, 2015 Author Report Posted March 10, 2015 or if anyone can explain how this regex works(like how its constructed) that will also be helpfull
ZuniorVentiyar Posted March 10, 2015 Report Posted March 10, 2015 try this regex filterEmail = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+[A-Za-z0-9\-]+\.)+([a-zA-Z0-9]{2,4})+$/;
puli_keka Posted March 10, 2015 Report Posted March 10, 2015 regexper.com lo adhi paste chey, you will get some idea,,, i see dot at two places , you might need to remove it
ZuniorVentiyar Posted March 10, 2015 Report Posted March 10, 2015 try here .... http://regexper.com/#%2F%5E(%5Ba-zA-Z0-9_.%2B-%5D)%2B%5C%40((%5Ba-zA-Z0-9-%5D)%2B%5BA-Za-z0-9%5C-%5D%2B%5C.)%2B(%5Ba-zA-Z0-9%5D%7B2%2C4%7D)%2B%24%2F
puli_keka Posted March 10, 2015 Report Posted March 10, 2015 ohh i get it.. @ mundu unna dot peekeyyali anthena
saradagakasepu Posted March 10, 2015 Report Posted March 10, 2015 regexper.com lo adhi paste chey, you will get some idea,,, i see dot at two places , you might need to remove it
ZuniorVentiyar Posted March 10, 2015 Report Posted March 10, 2015 @ mundu inni symboles accept chesthundi????? email lo ivvani accept chesthunaraaa??? One of:-“a”“z”-“A”“Z”-“0”“9”“.”“!”“#”“$”“%”“&”“'”“*”“+”“/”“=”“?”“^”“_”“`”“{”“|”“}”“~”“-
Suhaas Posted March 10, 2015 Report Posted March 10, 2015 (\w|[\.\-])+@(\w|[\-]+\.)*(\w|[\-]){2,63}\.[a-zA-Z]{2,4}
dotnetrockz Posted March 10, 2015 Author Report Posted March 10, 2015 @ 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?
puli_keka Posted March 10, 2015 Report Posted March 10, 2015 @ 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
dotnetrockz Posted March 10, 2015 Author Report Posted March 10, 2015 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
k2s Posted March 10, 2015 Report Posted March 10, 2015 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/
Recommended Posts