I need to generate, at run time, a regular expression that will match a range of numeric values.

For example: At run time I may discover that I need a regular expression matching all the files in the "range" `a-261-b.something` to `a-543-b.something`.

I need to generate a regular expression that will match all of this files. Any ideas?

I need it in Java, so if anyone know any Java-specific way to so this, it's also acceptable.