News for hackers. Stuff that matters.
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.
Re:The Anvil Text Editor by vulcan01 on Thursday October 24, 2024 @08:15AM (#41934749)
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.