http://qs321.pair.com?node_id=998383


in reply to Re^3: RegEx + vs. {1,}
in thread RegEx + vs. {1,}

But what should be returned if we have string 'abcabcabcdef' with same amount of three-chars-long and two-chars-long string? 'ab' or 'abc'? I assume OP wants the longer one.