Given a regular expression, generate a string that matches it.