Re:The Anvil Text Editor
by globular-toast on Thursday October 24, 2024 @08:09AM
(#41934719)
You would restrict your regexp to a region. In Emacs you just select a region somehow (like your press ctrl+d five times), then just do the regexp replace.
[ Parent
| on HN ]
Notice that you also don't need to write a regex with multiple cursors - instead, you can visually see your selections and changes as you go, using the same editing motions that you would typically use.