A function to generate a regex expression for a range of numbers like: 1995-2000. Sounds like an application of purest evil.[1]