Grouping in sed regexp