Pxereg (regexp inversed) is a little package allowing to generate all possible string from a regexp source string. The pxeger grammar does not follow exactly the regexp one, so some features may be missing, but it should cover most of use cases.
Random String generator from regular expression