Click here to Skip to main content

Jean-Francois Lanouette asked:

Open original thread
Hi,
 
In our application we have many fields that are validated by using a regex. When the user enter an invalid data we show an error message. What I'm looking for is a way to create an example of a valid entry based on the regex we used to validate the field.
 
I know that there's already libraries written in perl and in Java (xeger) that do this, I'm looking for one in .Net (2.0), or to someone nice enough to share his Smile | :)
 
thx
Tags: C#, .NET2.0, regular-expression, RegEx

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid