my @groups = split /(SECTION \d+)/$string; #### $hasharray["SECTION 1"]