in reply to Re: help with regex
in thread help with regex

If you want all the Gs (15 for the sample data given), you need to make the first match non-greedy: / .*? G{10,} /x.

Or just / G{10,} /x would be simpler and do the same thing. (Unless the string contains newlines!)