Working on RE, but sed script is getting too big
More sed