QAInsight.net, QABlog.com, QABlog.net
Brent Strange's thoughts on Software Quality Assurance and technology

 
Tuesday, March 28, 2006
 
 

Testing regular expression with RegexDesigner.NET

 
 

We have a new QAInsigh.net content contributor today! Friend and fellow QA Engineer Rohit Mathur writes:

I was going through Scott Hanselman’s blog and he mentions (in his Ultimate Tool list) the RegEx tool RegexDesigner.NET by Chris Sells.

I found the tool very useful trying to evaluate the RegEx used in our Corillian online banking implementations. In our implementations the list of regular expressions are contained in a .config file. 

You can extract ‘the Date’ RegEx out of the .config file:

<add key="Date" value="^([0]?[1-9]|[1][0-2])[/-]([0]?[1-9]|[1|2]\d|[3][0|1])[/-](\d{4})$"/>

and then, using the RegexDesigner tool, you can test the Regular Expression to see what format/characters are allowed/disallowed: 

 
   
   
   
Sunday, April 02, 2006 5:53:55 AM (US Mountain Standard Time, UTC-07:00)
Have you checked regex.osherove.com ?
Comments are closed.