Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm using

/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/ this expression for my email validation it's working but now i want know what is meaning of every character in this expression step by step.

like [\w-\.] meaning,
([\w-]+\.) meaning,
([\w-\.]+@([\w-]+\.) meaning,
[\w-]{2,4}.



thank you in advanced.
Posted
Comments
Suvabrata Roy 10-Sep-15 1:33am    
just google javascript Regex
RamAchanta 10-Sep-15 1:38am    
i need step by step explanation about that expression.

Here you go for step by step info : http://www.w3schools.com/jsref/jsref_obj_regexp.asp[^]
 
Share this answer
 
Comments
RamAchanta 10-Sep-15 2:18am    
Thank you....
Some documentation: perl regex
http://perldoc.perl.org/perlre.html[^]
and to see your reg expression
https://www.debuggex.com/[^]
Details change depending on which regex package you use.
 
Share this answer
 
v2
Comments
RamAchanta 10-Sep-15 2:52am    
Thank you.
Look no further than codeproject The 30 Minute Regex Tutorial[^]
 
Share this answer
 
Comments
RamAchanta 10-Sep-15 3:16am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900