fix regexing for single lines with ed