string_pattern
string_pattern copied to clipboard
regular expression not supporting capture and repetitions at the same time
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