use matched str, not key in replacement

s/sep/eol/