ed is a stupid simple text editor. \ sed is a nice streaming text processing tool. \ Why would one even want to use ed for anything, let alone for text processing if there’s sed? assets/sed-ed.png Digital thumbnail with handwritten text on it. \ The text in the center says “s/sed/ed”. \ Asubstitution command seplacing “sed” with “ed” in the given text. \ In the corners, “a Artyom Bologov .” and “a aartaka.me .” are written in dark-red curvy letters. \ These are mimicking the append command from ed, adding “Artyom Bologov” and “aartaka.me” to the text. IMG(IMAGE, IMAGE_ALT)

This post starts with holding a grudge: Posix regular expressions are extremely hard to get wrong? Uh... Have you really written any? Sounds like you might not really know either Posix or PCRE.

Yes, I’ve written some regular expressions. I made a compiler from Modal to ed, made as an ed script. I implemented Wisp syntax preprocessor for Scheme, the only Wisp implementation besides the reference by Arne Babenhauserheide. Most of 100 RosettaCode entries for ed are completed by me, and I created ed category in the first place.

... come again? ed????? Why are you using such an antiquated editor? Why are you writing scripts for it? It wasn’t even intended for scripting, right? There’s sed for scripting, so just use sed!

No. I stay with ed, because it is