Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
My client has asked me to validate an user entry. The entry should follow the rules on link http://www.codelifter.com/main/tips/tip_020.shtml else I have to show validation message.

I am not very good at regex. Cn anybody give me some approach/regex for validating this.I have to validate from client and server side both.
Posted
Comments
Dylan Morley 31-Aug-10 10:57am    
That link points to code naming suggestions for javascript, nothing to do with user collection? Noone will be able to suggest a regex without knowing how to validate the user info
Brij 31-Aug-10 11:03am    
Thanks Dylan. My requirent to validate the user entry/string to validate according to javascript variable naming suggestions else a error message to be shown.
Little wierd validation but asked by client :(.Have to implement.

1 solution

This tool is helpful for creating and testing RegEx
http://www.ultrapico.com/Expresso.htm[^]
 
Share this answer
 

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