Algorithm (in C#) for generating Regex expressions

Nov 22 2010 6:54 PM

I need to track down or write some code which can generate a regular expression for validating a numeric string to fit into a range.   The input o this algorithm would be the max and min value. 
I figured someone would probably already written such an algorithm.  Any suggustions for a starting point will be most welcome.