The attached patch (Made against 1.17-pre1; is there a public git or other revision control system repository for GNU ed? I didn't see anything on the savannah page) adds a grep-inspired -E switch to use EREs instead of BREs (So you don't have to hope the underlying regcomp/regexec implementation supports BRE extensions like \|).
ed-ere.patch
Description: Binary data