regen/regen.hpp
/**
     * generates a random string matching the given regular expression
     * 
     * @param regex regular expression
     * @param generator Generator used to generate the string. @see Generator for default parameters
     * 
     * @throw std::runtime_error error processing the regex (i.e. invalid regex)
     * @throw std::logic_error probably a problem with the code :)
     * 
     * @return the generated string
     */
generates a random string matching the given regular expression

@param regex regular expression
@param generator Generator used to generate the string. @see Generator for default parameters



@return the generated string
generates a random string matching the given regular expression @param regex regular expression @param generator Generator used to generate the string . @see Generator for default parameters @return the generated string
inline std::string generate( const std::string& regextr,
                Generator generator = Generator() )
    {
        auto tokens = lexer( regextr );
        auto regex = Parser().parse( tokens );
        return generator.generate( regex );
    }
inline std :: string generate ( const std :: string & regextr , Generator generator = Generator ( ) ) { auto tokens = lexer ( regextr ) ; auto regex = Parser ( ) . parse ( tokens ) ; return generator . generate ( regex ) ; }
generates a random string matching the given regular expression
generates a random string matching the given regular expression