It is not possible to generate strings using a regular expression that uses repetitions of captures, for example: puts /(\w)+/.gen For the moment it is possible to do it inside the capture like this: puts /(\w+)/.gen