Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Javascript , +
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 31-Aug-10 5:13am
Brij67.2K
Comments
Dylan Morley at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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



Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 31 Aug 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100